fstests.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] generic: Use $RESULT_DIR instead of $here
@ 2019-12-03 12:55 Kusanagi Kouichi
  0 siblings, 0 replies; only message in thread
From: Kusanagi Kouichi @ 2019-12-03 12:55 UTC (permalink / raw)
  To: fstests

If $here is not writable, tests fail.

Signed-off-by: Kusanagi Kouichi <slash@ac.auone-net.jp>
---
 tests/generic/075 | 10 +++++-----
 tests/generic/112 |  6 +++---
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/tests/generic/075 b/tests/generic/075
index 923c9e4f..df2087c3 100755
--- a/tests/generic/075
+++ b/tests/generic/075
@@ -55,16 +55,16 @@ _do_test()
 	fi
     fi
 
-    # This cd and use of -P gets full debug on $here (not TEST_DEV)
+    # This cd and use of -P gets full debug on "$RESULT_DIR" (not TEST_DEV)
     cd $out
-    if ! $here/ltp/fsx $_param -P $here $seq.$_n $FSX_AVOID &>/dev/null
+    if ! $here/ltp/fsx $_param -P "$RESULT_DIR" $seq.$_n $FSX_AVOID &>/dev/null
     then
 	echo "    fsx ($_param) failed, $? - compare $seqres.$_n.{good,bad,fsxlog}"
 	mv $out/$seq.$_n $seqres.$_n.full
-	mv $here/$seq.$_n.fsxlog $seqres.$_n.fsxlog
+	mv "$RESULT_DIR"/$seq.$_n.fsxlog $seqres.$_n.fsxlog
 	od -xAx $seqres.$_n.full > $seqres.$_n.bad
-	od -xAx $here/$seq.$_n.fsxgood > $seqres.$_n.good
-	rm -f $here/$seq.$_n.fsxgood
+	od -xAx "$RESULT_DIR"/$seq.$_n.fsxgood > $seqres.$_n.good
+	rm -f "$RESULT_DIR"/$seq.$_n.fsxgood
 	status=1
 	exit
     fi
diff --git a/tests/generic/112 b/tests/generic/112
index 18d610ee..580c4cd5 100755
--- a/tests/generic/112
+++ b/tests/generic/112
@@ -55,12 +55,12 @@ _do_test()
 	fi
     fi
 
-    # This cd and use of -P gets full debug on $here (not TEST_DEV)
+    # This cd and use of -P gets full debug on "$RESULT_DIR" (not TEST_DEV)
     cd $out
-    if ! $here/ltp/fsx $_param -P $here $FSX_AVOID $seq.$_n &>/dev/null
+    if ! $here/ltp/fsx $_param -P "$RESULT_DIR" $FSX_AVOID $seq.$_n &>/dev/null
     then
 	echo "    fsx ($_param) returned $? - see $seq.$_n.full"
-	mv $here/$seq.$_n.fsxlog $seqres.$_n.full
+	mv "$RESULT_DIR"/$seq.$_n.fsxlog $seqres.$_n.full
 	status=1
 	exit
     fi
-- 
2.24.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-12-03 12:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-03 12:55 [PATCH] generic: Use $RESULT_DIR instead of $here Kusanagi Kouichi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).