xfs
[Top] [All Lists]

[PATCH] xfstests: make 127 and 134 clean up after themselves

To: xfs@xxxxxxxxxxx
Subject: [PATCH] xfstests: make 127 and 134 clean up after themselves
From: Alex Elder <aelder@xxxxxxx>
Date: Fri, 04 Mar 2011 14:22:10 -0600
User-agent: Heirloom mailx 12.5 7/5/10
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@xxxxxxx>

---
 127 |    1 +
 134 |    3 +--
 2 files changed, 2 insertions(+), 2 deletions(-)

Index: b/127
===================================================================
--- a/127
+++ b/127
@@ -38,6 +38,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 1
 
 _cleanup()
 {
+    rm -f $tmp.output
     _cleanup_testdir
 }
 
Index: b/134
===================================================================
--- 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

<Prev in Thread] Current Thread [Next in Thread>