aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Terrell <terrelln@fb.com>2020-12-07 12:08:29 -0800
committerNick Terrell <terrelln@fb.com>2020-12-10 11:03:47 -0800
commit0be843b2001336be5b6233f2f9742f5ca4d75cb4 (patch)
tree6631cb8c25a8d8325379495562e3dc56ea1e73ad
parent54105f5757eaa6f303ce3733e9431a2670e17aed (diff)
downloadzstd-0be843b2001336be5b6233f2f9742f5ca4d75cb4.tar.gz
[tests] Fix playTests.sh with spaces in path
-rwxr-xr-xtests/playTests.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/playTests.sh b/tests/playTests.sh
index 3f53b6a7..51b42b60 100755
--- a/tests/playTests.sh
+++ b/tests/playTests.sh
@@ -273,10 +273,10 @@ ln -sf "$ZSTD_BIN" zstdcat
rm -f tmp_grep
echo "1234" > tmp_grep
zstd -f tmp_grep
-lines=$(ZCAT=./zstdcat $ZSTDGREP 2>&1 "1234" tmp_grep tmp_grep.zst | wc -l)
+lines=$(ZCAT=./zstdcat "$ZSTDGREP" 2>&1 "1234" tmp_grep tmp_grep.zst | wc -l)
test 2 -eq $lines
-ZCAT=./zstdcat $ZSTDGREP 2>&1 "1234" tmp_grep_bad.zst && die "Should have failed"
-ZCAT=./zstdcat $ZSTDGREP 2>&1 "1234" tmp_grep_bad.zst | grep "No such file or directory" || true
+ZCAT=./zstdcat "$ZSTDGREP" 2>&1 "1234" tmp_grep_bad.zst && die "Should have failed"
+ZCAT=./zstdcat "$ZSTDGREP" 2>&1 "1234" tmp_grep_bad.zst | grep "No such file or directory" || true
rm -f tmp_grep*
println "\n===> --exclude-compressed flag"