generic: fix $tmp path in tests
PATCH 1/1 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.
Signed-off-by Eryu Guan <[email protected]>
--- tests/generic/018 | 2 +- tests/generic/094 | 2 +- tests/generic/225 | 2 +- tests/generic/249 | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
tests/generic/018 +1 -1
@@ -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
tests/generic/094 +1 -1
@@ -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
tests/generic/225 +1 -1
@@ -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
tests/generic/249 +1 -1
@@ -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
Signature · 1 line
2.7.4
Quoted 7 lines · Eryu Guan
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.Signed-off-by Eryu Guan <[email protected]>
looks fine.
Reviewed-by Dave Chinner <[email protected]>
Signature · 2 lines
Dave Chinner [email protected]