test-lib: translate SIGTERM and SIGHUP to an exit
[gitweb.git] / t / test-lib.sh
index c34831a4deab4cc76916ff8fbafec531607760b5..4c3744cce4fc99e482a4d07da40188ccc68b6a97 100644 (file)
@@ -476,7 +476,7 @@ die () {
 
 GIT_EXIT_OK=
 trap 'die' EXIT
-trap 'exit $?' INT
+trap 'exit $?' INT TERM HUP
 
 # The user-facing functions are loaded from a separate file so that
 # test_perf subshells can have them too