mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 05:52:48 +07:00
test: instrument shutdown to debug failing tests on GitHub
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -209,13 +209,20 @@ teardown()
|
||||
else
|
||||
log "$fg_red" 'TEST FAIL' ''
|
||||
fi
|
||||
|
||||
say "Telling Finit to shut down ..."
|
||||
if [ -n "${finit_pid+x}" ]; then
|
||||
texec kill -SIGUSR2 1
|
||||
fi
|
||||
|
||||
say "Waiting for Finit to shut down ..."
|
||||
wait
|
||||
|
||||
say "Final cleanup ..."
|
||||
rm -f "$TENV_ROOT"/running_test.pid
|
||||
|
||||
|
||||
say "EXIT: $test_status"
|
||||
exit $test_status
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user