From: Ruediger Meier Date: Fri, 8 May 2015 22:34:12 +0000 (+0200) Subject: tests: always kill helper X-Git-Tag: v2.27-rc1~140 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1e2b75611d7a5ca78a576ff06016f85ad8b14c85;p=thirdparty%2Futil-linux.git tests: always kill helper Signed-off-by: Ruediger Meier --- diff --git a/tests/ts/kill/print_pid b/tests/ts/kill/print_pid index 1b3052bb8e..c6187f192d 100755 --- a/tests/ts/kill/print_pid +++ b/tests/ts/kill/print_pid @@ -41,13 +41,13 @@ fi if [ "x$TEST_PID" != "x$KILL_PID" ]; then echo "jobs -p $TEST_PID != kill -p $KILL_PID" >> "$TS_OUTPUT" all_ok=false -else - "$TS_CMD_KILL" -1 $TEST_PID - wait $TEST_PID - if [ $? -ne 1 ]; then - echo "wait $TEST_PID returned ${?}" >> "$TS_OUTPUT" - all_ok=false - fi +fi + +"$TS_CMD_KILL" -1 $TEST_PID +wait $TEST_PID +if [ $? -ne 1 ]; then + echo "wait $TEST_PID returned ${?}" >> "$TS_OUTPUT" + all_ok=false fi if $all_ok; then