tests: clean up the temp file if test_one is interrupted

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
This commit is contained in:
Theodore Ts'o 2014-06-09 10:47:41 -04:00
parent 358c94ab33
commit 0b5610e0fa

View File

@ -31,6 +31,7 @@ fi
test_name=`echo $test_dir | sed -e 's;.*/;;'`
TMPFILE=$(mktemp -t e2fsprogs-tmp-$test_name.XXXXXX)
trap 'rm -f $TMPFILE ; exit' 1 2 15
if [ -f $test_dir ] ; then
exit 0;