mirror of
https://github.com/troglobit/finit.git
synced 2026-10-17 10:49:34 +00:00
test: instrument shutdown to debug failing tests on GitHub
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
1b78f2b364
commit
33ec4e7d19
1 file changed
+7
@@ -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