From 613901b6d3ea198ac051f63e16c6ea9cd088a6e4 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Sun, 9 Feb 2025 23:41:32 -0800 Subject: [PATCH] modifies command echoing for macos / linux compatibility --- tests/cli-tests/compression/levels.sh | 3 +++ tests/cli-tests/compression/levels.sh.stderr.exact | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) 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