diff options
author | David Kalnischkies <david@kalnischkies.de> | 2015-10-11 13:00:56 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2015-11-04 18:04:00 +0100 |
commit | 3685f84d8c0abfbddd12e034561e5f3fe8cbf2eb (patch) | |
tree | ed095772e80de28616eb1e0074206a843846300d | |
parent | a947590adaf68b1f08a7fca6b5a03f278a485739 (diff) |
tests: ensure sponge-files are cleaned up properly
Git-Dch: Ignore
-rwxr-xr-x | test/integration/run-tests | 2 |
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}: " |