Skip to content

Commit

Permalink
test: fix grep -v in t0140
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentsenta committed Aug 16, 2023
1 parent 9c12716 commit e5400f7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/sharness/t0140-swarm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ test_launch_ipfs_daemon

test_expect_success "Addresses.NoAnnounce affects addresses from Announce and AppendAnnounce" '
ipfs swarm addrs local >actual &&
grep -v "/ip4/1.2.3.4/tcp/1234" actual &&
grep -v "/ip4/10.20.30.40/tcp/4321" actual &&
test_should_not_contain "/ip4/1.2.3.4/tcp/1234" actual &&
test_should_not_contain "/ip4/10.20.30.40/tcp/4321" actual &&
ipfs id -f"<addrs>" | xargs -n1 echo >actual &&
grep -v "/ip4/1.2.3.4/tcp/1234" actual &&
grep -v "//ip4/10.20.30.40/tcp/4321" actual
test_should_not_contain "/ip4/1.2.3.4/tcp/1234" actual &&
test_should_not_contain "//ip4/10.20.30.40/tcp/4321" actual
'

test_kill_ipfs_daemon
Expand All @@ -119,9 +119,9 @@ test_launch_ipfs_daemon

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

test_kill_ipfs_daemon
Expand Down

0 comments on commit e5400f7

Please sign in to comment.