summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtest/integration/run-tests2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/integration/run-tests b/test/integration/run-tests
index 87cc292d7..f2a266139 100755
--- a/test/integration/run-tests
+++ b/test/integration/run-tests
@@ -47,6 +47,8 @@ fi
if [ -n "$TESTTORUN" ]; then
# collecting the output of one test to have it together
OUTPUT="$(mktemp)"
+ CURRENTTRAP="rm -f \"$OUTPUT\"; $CURRENTTRAP"
+ trap "$CURRENTTRAP" 0 HUP INT QUIT ILL ABRT FPE SEGV PIPE TERM
{
if [ "$MSGLEVEL" -le 2 ]; then
printf "${CTEST}Testcase ${CHIGH}${TESTTORUN##*/}${CRESET}: "