summaryrefslogtreecommitdiff
path: root/t/lib-read-tree.sh
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2015-03-13 00:48:48 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-03-12 23:22:57 -0700
commitda706545f7a1fa97cd8d9cf40659ab2a167be7c0 (patch)
tree26be0824058e70573ee714443200354af1993993 /t/lib-read-tree.sh
parentGit 2.3.2 (diff)
downloadtgif-da706545f7a1fa97cd8d9cf40659ab2a167be7c0.tar.xz
t: translate SIGINT to an exit
Right now if a test script receives SIGINT (e.g., because a test was hanging and the user hit ^C), the shell exits immediately. This can be annoying if the test script did any global setup, like starting apache or git-daemon, as it will not have an opportunity to clean up after itself. A subsequent run of the test won't be able to start its own daemon, and will either fail or skip the tests. Instead, let's trap SIGINT to make sure we do a clean shutdown, and just chain it to a normal exit (which will trigger any cleanup). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/lib-read-tree.sh')
0 files changed, 0 insertions, 0 deletions