mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 17:34:54 +01:00
test: make all tests terminable with Ctrl-c
Some tests don't break when HUP signal is sent tho those (by pressing ctrl-c on the terminal). Therefore, the top-level test script catches the HUP and sends TERM signal to the started test script.
This commit is contained in:
parent
66247d26f3
commit
6237f3808c
1 changed files with 4 additions and 1 deletions
|
@ -60,10 +60,13 @@ else
|
|||
TEST_TIMEOUT_CMD=""
|
||||
fi
|
||||
|
||||
trap 'e=$?; kill $!; exit $e' HUP INT TERM
|
||||
# Run the tests
|
||||
for test in $TESTS; do
|
||||
$TEST_TIMEOUT_CMD ./$test "$@"
|
||||
$TEST_TIMEOUT_CMD ./$test "$@" &
|
||||
wait $!
|
||||
done
|
||||
trap - HUP INT TERM
|
||||
|
||||
# Report results
|
||||
./aggregate-results.sh test-results/*
|
||||
|
|
Loading…
Reference in a new issue