From cc8fb0e69dfa57a8c09465b472b53d40eecf93fa Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Fri, 7 Sep 2007 17:03:48 -0400 Subject: [PATCH] Delete the test.img file after running the resize2fs tests The resize2fs tests, r_move_itable and r_resize_inode, were not deleting the test.img tmpfile after completing the test. Signed-off-by: "Theodore Ts'o" --- tests/r_move_itable/script | 3 ++- tests/r_resize_inode/script | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/r_move_itable/script b/tests/r_move_itable/script index 488fda2..e2a9149 100644 --- a/tests/r_move_itable/script +++ b/tests/r_move_itable/script @@ -94,7 +94,8 @@ $TUNE2FS -c 20 -U clear $TMPFILE >/dev/null 2>&1 echo dumpe2fs test.img >> $OUT $DUMPE2FS $TMPFILE 2>&1 | sed -f $cmd_dir/filter_dumpe2fs >> $OUT -rm -f $test_name.ok $test_name.failed +rm -f $test_name.ok $test_name.failed $TMPFILE + cmp -s $OUT $EXP status=$? diff --git a/tests/r_resize_inode/script b/tests/r_resize_inode/script index 5422d3b..ff6eb50 100644 --- a/tests/r_resize_inode/script +++ b/tests/r_resize_inode/script @@ -80,8 +80,7 @@ $TUNE2FS -c 20 -U clear $TMPFILE >/dev/null 2>&1 echo dumpe2fs test.img >> $OUT $DUMPE2FS $TMPFILE 2>&1 | sed -f $cmd_dir/filter_dumpe2fs >> $OUT - -rm -f $test_name.ok $test_name.failed +rm -f $test_name.ok $test_name.failed $TMPFILE cmp -s $OUT $EXP status=$? -- 1.8.3.1