xfs
[Top] [All Lists]

[PATCH] xfstests 299-305: remove fio config files after finished test

To: xfs@xxxxxxxxxxx
Subject: [PATCH] xfstests 299-305: remove fio config files after finished test
From: Zheng Liu <gnehzuil.liu@xxxxxxxxx>
Date: Tue, 19 Mar 2013 17:30:50 +0800
Cc: linux-ext4@xxxxxxxxxxxxxxx, Zheng Liu <wenqing.lz@xxxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=higUiz8FrvxDB89UWD7GSGw3VmRMgcM6Lpr5/WySGLM=; b=XQ0olcTP5HxPDFwVIJGWD8v5PNOFatuiMTkVSGR7pqPI8ewEONcGLlj+i+8rtkCN/H iOkdgBH62gdVj/pDUT+ZkRywK0QkK53ofbSugqR8FK6mCg6La8V/qWK4T+iYVuIzRULu I96JvkkAVn4DRBvHYLQ6XyGLx5hqLEh8aL9suFvbRYtuqt7GY1rpCJ1oECjfhD/on36Y jlDfl+kFRjxPPAUvsmgC23HPE5Qw9uS+nSbOnjJcqcW0ug03lPg8E/eM6PUkQ3jRS+Rf gKBgxe/bCoJnQc4Azk9TOstmRgsgks7KrnlMIm+uDugsF4QkbgJlnkF4rSMVBP5TVAcU me9w==
From: Zheng Liu <wenqing.lz@xxxxxxxxxx>

After finished test, temporarily fio config file should be removed.

Signed-off-by: Zheng Liu <wenqing.lz@xxxxxxxxxx>
---
 299 | 2 +-
 300 | 2 +-
 301 | 2 +-
 302 | 2 +-
 303 | 2 +-
 304 | 2 +-
 305 | 1 +
 7 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/299 b/299
index 4305ead..9d0c32f 100644
--- a/299
+++ b/299
@@ -32,7 +32,7 @@ echo "QA output created by $seq"
 here=`pwd`
 tmp=/tmp/$$
 status=1       # failure is the default!
-trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
+trap "rm -f $tmp.*; rm -f $tmp-$seq.fio; exit \$status" 0 1 2 3 15
 
 # get standard environment, filters and checks
 . ./common.rc
diff --git a/300 b/300
index 73c9ea7..413f9eb 100644
--- a/300
+++ b/300
@@ -32,7 +32,7 @@ echo "QA output created by $seq"
 here=`pwd`
 tmp=/tmp/$$
 status=1       # failure is the default!
-trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
+trap "rm -f $tmp.*; rm $tmp-$seq.fio; exit \$status" 0 1 2 3 15
 
 # get standard environment, filters and checks
 . ./common.rc
diff --git a/301 b/301
index fe2e59f..6ac8ecf 100644
--- a/301
+++ b/301
@@ -30,7 +30,7 @@ echo "QA output created by $seq"
 here=`pwd`
 tmp=/tmp/$$
 status=1       # failure is the default!
-trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
+trap "rm -f $tmp.*; rm -f $tmp-$seq.fio; exit \$status" 0 1 2 3 15
 
 # get standard environment, filters and checks
 . ./common.rc
diff --git a/302 b/302
index e3dceb8..62398c9 100644
--- a/302
+++ b/302
@@ -31,7 +31,7 @@ echo "QA output created by $seq"
 here=`pwd`
 tmp=/tmp/$$
 status=1       # failure is the default!
-trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
+trap "rm -f $tmp.*; rm -f $tmp-$seq.fio; exit \$status" 0 1 2 3 15
 
 # get standard environment, filters and checks
 . ./common.rc
diff --git a/303 b/303
index 4141442..d198ebb 100644
--- a/303
+++ b/303
@@ -31,7 +31,7 @@ echo "QA output created by $seq"
 here=`pwd`
 tmp=/tmp/$$
 status=1       # failure is the default!
-trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
+trap "rm -f $tmp.*; rm -f $tmp-$seq.fio; exit \$status" 0 1 2 3 15
 
 # get standard environment, filters and checks
 . ./common.rc
diff --git a/304 b/304
index 5c414bd..fb94fe6 100644
--- a/304
+++ b/304
@@ -32,7 +32,7 @@ echo "QA output created by $seq"
 here=`pwd`
 tmp=/tmp/$$
 status=1       # failure is the default!
-trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
+trap "rm -f $tmp.*; rm -f $tmp-$seq.fio; exit \$status" 0 1 2 3 15
 
 # get standard environment, filters and checks
 . ./common.rc
diff --git a/305 b/305
index 6393461..9d89321 100644
--- a/305
+++ b/305
@@ -80,6 +80,7 @@ _cleanup()
 {
     poweron_scratch_dev
     disallow_fail_make_request
+    rm -f $tmp-$seq.fio
 }
 trap "_cleanup; exit \$status" 1 2 3 15
 
-- 
1.7.12.rc2.18.g61b472e

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