mirror of
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
synced 2024-11-23 18:14:25 +08:00
test_one: make sure the tmpfile is cleaned up if the test script exits
f_detect_junk will skip the test by exiting; and in that case we need to make sure the test's tmpfile gets cleaned up. Signed-off-by: Theodore Ts'o <tytso@mit.edu>
This commit is contained in:
parent
98c6113b41
commit
03fdf30663
@ -61,7 +61,7 @@ rm -f $test_name.ok $test_name.failed $test_name.log $test_name.slow
|
||||
#echo -e -n "$test_name: $test_description:\r"
|
||||
|
||||
TMPFILE=$(mktemp ${TMPDIR:-/tmp}/e2fsprogs-tmp-$test_name.XXXXXX)
|
||||
[ "$SKIP_UNLINK" != "true" ] && trap 'rm -f $TMPFILE ; exit' 1 2 15
|
||||
[ "$SKIP_UNLINK" != "true" ] && trap 'rm -f $TMPFILE ; exit' 0 1 2 15
|
||||
|
||||
start=$SECONDS
|
||||
if [ -f $test_dir/script ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user