Skip to content

Commit 3251f6f

Browse files
committed
test: fix grep -v in t0140
1 parent 9c12716 commit 3251f6f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/sharness/t0140-swarm.sh

+6-6
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,11 @@ test_launch_ipfs_daemon
101101

102102
test_expect_success "Addresses.NoAnnounce affects addresses from Announce and AppendAnnounce" '
103103
ipfs swarm addrs local >actual &&
104-
grep -v "/ip4/1.2.3.4/tcp/1234" actual &&
105-
grep -v "/ip4/10.20.30.40/tcp/4321" actual &&
104+
test_should_not_contain "/ip4/1.2.3.4/tcp/1234" actual &&
105+
test_should_not_contain "/ip4/10.20.30.40/tcp/4321" actual &&
106106
ipfs id -f"<addrs>" | xargs -n1 echo >actual &&
107-
grep -v "/ip4/1.2.3.4/tcp/1234" actual &&
108-
grep -v "//ip4/10.20.30.40/tcp/4321" actual
107+
test_should_not_contain "/ip4/1.2.3.4/tcp/1234" actual &&
108+
test_should_not_contain "//ip4/10.20.30.40/tcp/4321" actual &&
109109
'
110110

111111
test_kill_ipfs_daemon
@@ -119,9 +119,9 @@ test_launch_ipfs_daemon
119119

120120
test_expect_success "Addresses.NoAnnounce with /ipcidr affects addresses" '
121121
ipfs swarm addrs local >actual &&
122-
grep -v "/ip4/1.2.3.4/tcp/1234" actual &&
122+
test_should_not_contain "/ip4/1.2.3.4/tcp/1234" actual &&
123123
ipfs id -f"<addrs>" | xargs -n1 echo >actual &&
124-
grep -v "/ip4/1.2.3.4/tcp/1234" actual
124+
test_should_not_contain "/ip4/1.2.3.4/tcp/1234" actual &&
125125
'
126126

127127
test_kill_ipfs_daemon

0 commit comments

Comments
 (0)