]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
[tests] Fix playTests.sh with spaces in path
authorNick Terrell <terrelln@fb.com>
Mon, 7 Dec 2020 20:08:29 +0000 (12:08 -0800)
committerNick Terrell <terrelln@fb.com>
Thu, 10 Dec 2020 19:03:47 +0000 (11:03 -0800)
tests/playTests.sh

index 3f53b6a7aa572c9295015ae27019fc9601d9353d..51b42b60ac4ebb216d78febb112d63722bded024 100755 (executable)
@@ -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"