Skip to content

Commit e503178

Browse files
committedOct 16, 2015
t00{1,6}0: remove some useless cats
License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
1 parent 51d05fb commit e503178

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed
 

‎test/sharness/t0010-basic-commands.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ test_expect_success "ipfs version succeeds" '
1717
'
1818

1919
test_expect_success "ipfs version output looks good" '
20-
cat version.txt | egrep "^ipfs version [0-9]+\.[0-9]+\.[0-9]" >/dev/null ||
20+
egrep "^ipfs version [0-9]+\.[0-9]+\.[0-9]" version.txt >/dev/null ||
2121
test_fsh cat version.txt
2222
'
2323

@@ -26,8 +26,8 @@ test_expect_success "ipfs help succeeds" '
2626
'
2727

2828
test_expect_success "ipfs help output looks good" '
29-
cat help.txt | egrep -i "^Usage:" >/dev/null &&
30-
cat help.txt | egrep "ipfs .* <command>" >/dev/null ||
29+
egrep -i "^Usage:" help.txt >/dev/null &&
30+
egrep "ipfs .* <command>" help.txt >/dev/null ||
3131
test_fsh cat help.txt
3232
'
3333

‎test/sharness/t0060-daemon.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ test_expect_success "ipfs daemon output looks good" '
6060
echo "peer identity: $PEERID" >>expected_daemon &&
6161
echo "to get started, enter:" >>expected_daemon &&
6262
printf "\\n\\t$STARTFILE\\n\\n" >>expected_daemon &&
63-
cat local_addrs | sed "s/^/Swarm listening on /" >>expected_daemon &&
63+
sed "s/^/Swarm listening on /" local_addrs >>expected_daemon &&
6464
echo "API server listening on /ip4/127.0.0.1/tcp/5001" >>expected_daemon &&
6565
echo "Gateway (readonly) server listening on /ip4/127.0.0.1/tcp/8080" >>expected_daemon &&
6666
echo "Daemon is ready" >>expected_daemon &&
@@ -82,7 +82,7 @@ test_expect_success "ipfs version succeeds" '
8282
'
8383

8484
test_expect_success "ipfs version output looks good" '
85-
cat version.txt | egrep "^ipfs version [0-9]+\.[0-9]+\.[0-9]" >/dev/null ||
85+
egrep "^ipfs version [0-9]+\.[0-9]+\.[0-9]" version.txt >/dev/null ||
8686
test_fsh cat version.txt
8787
'
8888

@@ -91,8 +91,8 @@ test_expect_success "ipfs help succeeds" '
9191
'
9292

9393
test_expect_success "ipfs help output looks good" '
94-
cat help.txt | egrep -i "^Usage:" >/dev/null &&
95-
cat help.txt | egrep "ipfs .* <command>" >/dev/null ||
94+
egrep -i "^Usage:" help.txt >/dev/null &&
95+
egrep "ipfs .* <command>" help.txt >/dev/null ||
9696
test_fsh cat help.txt
9797
'
9898

1 commit comments

Comments
 (1)

whyrusleeping commented on Oct 19, 2015

@whyrusleeping
Member

@chriscool those poor kitties.

Please sign in to comment.