]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
generic: fix $tmp path in tests
authorEryu Guan <eguan@redhat.com>
Sat, 12 Nov 2016 18:12:33 +0000 (02:12 +0800)
committerEryu Guan <eguan@redhat.com>
Mon, 14 Nov 2016 02:37:49 +0000 (10:37 +0800)
Some tests use "tmp/$$" as $tmp, and this would result in ENOENT
failure if $tmp is referenced in helpers or tests, because we have
no "tmp" dir in pwd.

Fix them to use "/tmp/$$" as all other tests do.

Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/generic/018
tests/generic/094
tests/generic/225
tests/generic/249

index e8dbab37a548c7bd261a42b377fe1f8cbe033fa2..e554861cbab8018e8a4d7aad5fbf16705af7d9f1 100755 (executable)
@@ -26,7 +26,7 @@ seqres=$RESULT_DIR/$seq
 echo "QA output created by $seq"
 
 here=`pwd`
-tmp=tmp/$$
+tmp=/tmp/$$
 status=1       # failure is the default!
 trap "_cleanup; exit \$status" 0 1 2 3 15
 
index 005de1d86aa8e1945e9646e2fc7abc19521fd30f..b686a5b40c80f892d8a30659128dbff376b24f43 100755 (executable)
@@ -26,7 +26,7 @@ seqres=$RESULT_DIR/$seq
 echo "QA output created by $seq"
 
 here=`pwd`
-tmp=tmp/$$
+tmp=/tmp/$$
 status=1  # failure is the default!
 trap "_cleanup; exit \$status" 0 1 2 3 15
 
index 5285e685e99b298ed203a034718e7a0d41db7c67..544e0befb37db7ab02368c7ee1c20e733f32cb71 100755 (executable)
@@ -26,7 +26,7 @@ seqres=$RESULT_DIR/$seq
 echo "QA output created by $seq"
 
 here=`pwd`
-tmp=tmp/$$
+tmp=/tmp/$$
 status=1  # failure is the default!
 trap "_cleanup; exit \$status" 0 1 2 3 15
 
index d8b4df4742d086058d913fbc72075a3740212bc2..9b754788c200f0dd289b2c4967a17f3c55a2882f 100755 (executable)
@@ -26,7 +26,7 @@ seqres=$RESULT_DIR/$seq
 echo "QA output created by $seq"
 
 here=`pwd`
-tmp=tmp/$$
+tmp=/tmp/$$
 status=1  # failure is the default!
 trap "_cleanup; exit \$status" 0 1 2 3 15