]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
modifies command echoing for macos / linux compatibility 4290/head
authorYann Collet <yann.collet.73@gmail.com>
Mon, 10 Feb 2025 07:41:32 +0000 (23:41 -0800)
committerYann Collet <yann.collet.73@gmail.com>
Mon, 10 Feb 2025 07:41:32 +0000 (23:41 -0800)
tests/cli-tests/compression/levels.sh
tests/cli-tests/compression/levels.sh.stderr.exact

index 8da3b4e746bc7f045115f61b4d322eed2add5069..b8230f2a346bb14fd310dce8fbb2422b94673b7d 100755 (executable)
@@ -6,7 +6,10 @@ set -v
 datagen > file
 
 # Retrieve the program's version information
+# Note: command echoing differs between macos and linux, so it's disabled below
+set +v
 version_info=$(zstd -V)
+set -v
 
 # Compress with various levels and ensure that their sizes are ordered
 zstd --fast=10 file -o file-f10.zst -q
index dff9784dd40ee38b810cf9bd78b90e8548d7cf1a..fd7c076d2773cda514a6c7c319af5f30619946bb 100644 (file)
@@ -2,7 +2,8 @@
 datagen > file
 
 # Retrieve the program's version information
-version_info=$(zstd -V)
+# Note: command echoing differs between macos and linux, so it's disabled below
+set +v
 
 # Compress with various levels and ensure that their sizes are ordered
 zstd --fast=10 file -o file-f10.zst -q