cat log output on fail
Henry committed
Mar 4, 2015 at 14:53 UTC
0204a0c17492e5a1d22492b772ddecb089a36ba5
1 file changed
+4
-4
test/sharness/lib/test-lib.sh
+4
-4
@@ -175,14 +175,14 @@ test_launch_ipfs_daemon() {
175
ADDR_API="/ip4/127.0.0.1/tcp/5001"
176
test_expect_success "'ipfs daemon' is ready" '
177
IPFS_PID=$! &&
178
- pollEndpoint -ep=/version -host=$ADDR_API -v -tout=1s -tries=60 2>poll_err > poll_apiout ||
179
- test_fsh cat actual_daemon || test_fsh cat daemon_err
178
+ pollEndpoint -ep=/version -host=$ADDR_API -v -tout=1s -tries=60 2>poll_apierr > poll_apiout ||
179
+ test_fsh cat actual_daemon || test_fsh cat daemon_err || test_fsh cat poll_apierr || test_fsh cat poll_apiout
180
'
181
182
if test "$ADDR_GWAY" != ""; then
183
test_expect_success "'ipfs daemon' output includes Gateway address" '
184
- pollEndpoint -ep=/version -host=$ADDR_GWAY -v -tout=1s -tries=60 2>poll_err > poll_gwout ||
185
- test_fsh cat daemon_err
184
+ pollEndpoint -ep=/version -host=$ADDR_GWAY -v -tout=1s -tries=60 2>poll_gwerr > poll_gwout ||
185
+ test_fsh cat daemon_err || test_fsh cat poll_gwerr || test_fsh cat poll_gwout
186
'
187
fi
188
}