Merge branch 'release'
[notmuch] / test / notmuch-test
index 5aced5cef9fdb98cd1c213486de1e0f008371c90..ba28ff3908e4d415f0bbbdf4ea11f6b5d99f6570 100755 (executable)
@@ -61,10 +61,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/*