From: Yann Collet Date: Mon, 10 Feb 2025 07:41:32 +0000 (-0800) Subject: modifies command echoing for macos / linux compatibility X-Git-Tag: v1.5.7^2~6^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=613901b6d3ea198ac051f63e16c6ea9cd088a6e4;p=thirdparty%2Fzstd.git modifies command echoing for macos / linux compatibility --- diff --git a/tests/cli-tests/compression/levels.sh b/tests/cli-tests/compression/levels.sh index 8da3b4e74..b8230f2a3 100755 --- a/tests/cli-tests/compression/levels.sh +++ b/tests/cli-tests/compression/levels.sh @@ -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 diff --git a/tests/cli-tests/compression/levels.sh.stderr.exact b/tests/cli-tests/compression/levels.sh.stderr.exact index dff9784dd..fd7c076d2 100644 --- a/tests/cli-tests/compression/levels.sh.stderr.exact +++ b/tests/cli-tests/compression/levels.sh.stderr.exact @@ -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