diff options
author | Eryu Guan <eguan@redhat.com> | 2016-11-13 02:12:33 +0800 |
---|---|---|
committer | Eryu Guan <eguan@redhat.com> | 2016-11-14 10:37:49 +0800 |
commit | 1b244cdab292463096d2db34c679fc37e71c87ac (patch) | |
tree | 18592b92bce41fcf7a8bc45f07e7b962c4cac4d0 | |
parent | 23f60ef304d6c7561a7baf32ca945ee46c8859bc (diff) | |
download | xfstests-dev-1b244cdab292463096d2db34c679fc37e71c87ac.tar.gz |
generic: fix $tmp path in tests
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>
-rwxr-xr-x | tests/generic/018 | 2 | ||||
-rwxr-xr-x | tests/generic/094 | 2 | ||||
-rwxr-xr-x | tests/generic/225 | 2 | ||||
-rwxr-xr-x | tests/generic/249 | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/tests/generic/018 b/tests/generic/018 index e8dbab37a5..e554861cba 100755 --- a/tests/generic/018 +++ b/tests/generic/018 @@ -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 diff --git a/tests/generic/094 b/tests/generic/094 index 005de1d86a..b686a5b40c 100755 --- a/tests/generic/094 +++ b/tests/generic/094 @@ -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 diff --git a/tests/generic/225 b/tests/generic/225 index 5285e685e9..544e0befb3 100755 --- a/tests/generic/225 +++ b/tests/generic/225 @@ -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 diff --git a/tests/generic/249 b/tests/generic/249 index d8b4df4742..9b754788c2 100755 --- a/tests/generic/249 +++ b/tests/generic/249 @@ -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 |