t00{1,6}0: remove some useless cats
License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Christian Couder committed
Oct 15, 2015 at 21:43 UTC
e5031788fd084255f51d72d514a0416ba0888302
2 files changed
+7
-7
test/sharness/t0010-basic-commands.sh
+3
-3
@@ -17,7 +17,7 @@ test_expect_success "ipfs version succeeds" '
17
'
18
19
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 ||
21
test_fsh cat version.txt
22
'
23
@@ -26,8 +26,8 @@ test_expect_success "ipfs help succeeds" '
26
'
27
28
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 ||
31
test_fsh cat help.txt
32
'
33
test/sharness/t0060-daemon.sh
+4
-4
@@ -60,7 +60,7 @@ test_expect_success "ipfs daemon output looks good" '
60
echo "peer identity: $PEERID" >>expected_daemon &&
61
echo "to get started, enter:" >>expected_daemon &&
62
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 &&
64
echo "API server listening on /ip4/127.0.0.1/tcp/5001" >>expected_daemon &&
65
echo "Gateway (readonly) server listening on /ip4/127.0.0.1/tcp/8080" >>expected_daemon &&
66
echo "Daemon is ready" >>expected_daemon &&
@@ -82,7 +82,7 @@ test_expect_success "ipfs version succeeds" '
82
'
83
84
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 ||
86
test_fsh cat version.txt
87
'
88
@@ -91,8 +91,8 @@ test_expect_success "ipfs help succeeds" '
91
'
92
93
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 ||
96
test_fsh cat help.txt
97
'
98