xfstests: make 127 and 134 clean up after themselves
authorAlex Elder <aelder@sgi.com>
Fri, 4 Mar 2011 20:22:10 +0000 (20:22 +0000)
committerAlex Elder <aelder@sgi.com>
Wed, 9 Mar 2011 20:52:45 +0000 (14:52 -0600)
Tests 127 and 134 leave temp files around when they complete.
Fix (or enable) their cleanup functions to remedy this.

Signed-off-by: Alex Elder <aelder@sgi.com>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
127
134

diff --git a/127 b/127
index 8a61ffb632948ae59048c38c0a6ad9c70cb9d22d..62e584c506e320359e70735c94398878b17bbe3d 100755 (executable)
--- a/127
+++ b/127
@@ -38,6 +38,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
 
 _cleanup()
 {
+    rm -f $tmp.output
     _cleanup_testdir
 }
 
diff --git a/134 b/134
index 0f97e18c9f57f2e3b1c507cad5d20797b916e851..731716814f8e2a525189b1adacdf14142c72ac2e 100755 (executable)
--- a/134
+++ b/134
@@ -43,8 +43,7 @@ _cleanup()
        umount $SCRATCH_MNT 2>/dev/null
        rm -f $tmp.*
 }
-#trap "_cleanup; exit \$status" 0 1 2 3 15
-
+trap "_cleanup; exit \$status" 0 1 2 3 15
 
 # real QA test starts here
 _supported_fs xfs