Skip to contentSkip to conversation

generic: fix $tmp path in tests

PATCH In review Eryu Guan 2 participants 2 messages Nov 12, 2016 – Nov 13, 2016

lore
Share & tools
lore

Eryu Guan

author
#0 lore raw

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.

---
 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
index e8dbab3..e554861 100755
@@ -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
index 005de1d..b686a5b 100755
@@ -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
index 5285e68..544e0be 100755
@@ -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
index d8b4df4..9b75478 100755
@@ -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