grab daemon pid into its own variable
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
Jeromy committed
Mar 3, 2016 at 22:47 UTC
7072dab396f857df9e5e8f4048aa6639cba19dda
1 file changed
+2
-1
test/sharness/t0060-daemon.sh
+2
-1
@@ -110,13 +110,14 @@ test_expect_success "'ipfs daemon' can be killed" '
110
111
test_expect_success "'ipfs daemon' should be able to run with a pipe attached to stdin (issue #861)" '
112
yes | ipfs daemon >stdin_daemon_out 2>stdin_daemon_err &
113
+ DAEMON_PID=$!
114
test_wait_for_file 20 100ms "$IPFS_PATH/api" &&
115
test_set_address_vars stdin_daemon_out
116
'
117
118
test_expect_success "daemon with pipe eventually becomes live" '
119
pollEndpoint -host='$API_MADDR' -ep=/version -v -tout=1s -tries=10 >stdin_poll_apiout 2>stdin_poll_apierr &&
119
- test_kill_repeat_10_sec $! ||
120
+ test_kill_repeat_10_sec $DAEMON_PID ||
121
test_fsh cat stdin_daemon_out || test_fsh cat stdin_daemon_err || test_fsh cat stdin_poll_apiout || test_fsh cat stdin_poll_apierr
122
'
123