mirror of https://github.com/vitalif/e2fsprogs
tests: clean up the temp file if test_one is interrupted
Signed-off-by: Theodore Ts'o <tytso@mit.edu>maint-test
parent
358c94ab33
commit
0b5610e0fa
|
@ -31,6 +31,7 @@ fi
|
||||||
test_name=`echo $test_dir | sed -e 's;.*/;;'`
|
test_name=`echo $test_dir | sed -e 's;.*/;;'`
|
||||||
|
|
||||||
TMPFILE=$(mktemp -t e2fsprogs-tmp-$test_name.XXXXXX)
|
TMPFILE=$(mktemp -t e2fsprogs-tmp-$test_name.XXXXXX)
|
||||||
|
trap 'rm -f $TMPFILE ; exit' 1 2 15
|
||||||
|
|
||||||
if [ -f $test_dir ] ; then
|
if [ -f $test_dir ] ; then
|
||||||
exit 0;
|
exit 0;
|
||||||
|
|
Loading…
Reference in New Issue