From 95a63f14e2357b17380896597a9612611480704d Mon Sep 17 00:00:00 2001 From: Laurent Senta Date: Thu, 16 Feb 2023 12:20:36 +0100 Subject: [PATCH] test: fix the grep in t0046 --- test/sharness/t0046-id-hash.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/sharness/t0046-id-hash.sh b/test/sharness/t0046-id-hash.sh index d4c28f215078..df60df484a82 100755 --- a/test/sharness/t0046-id-hash.sh +++ b/test/sharness/t0046-id-hash.sh @@ -25,7 +25,7 @@ test_expect_success "ipfs add succeeds with identity hash" ' ' test_expect_success "content not actually added" ' - ipfs refs local | fgrep -q -v $HASH + ! ipfs refs local | fgrep -q $HASH ' test_expect_success "but can fetch it anyway" ' @@ -98,7 +98,7 @@ test_expect_success "ipfs add succeeds with identity hash and --nocopy" ' ' test_expect_success "content not actually added (filestore enabled)" ' - ipfs refs local | fgrep -q -v $HASH + ! ipfs refs local | fgrep -q $HASH ' test_expect_success "but can fetch it anyway (filestore enabled)" '