mirror of
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
synced 2024-11-24 10:33:35 +08:00
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:
parent
358c94ab33
commit
0b5610e0fa
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user