mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
generic/{075,122}: Use $RESULT_DIR instead of $here
If $here is not writable, tests fail. Signed-off-by: Kusanagi Kouichi <slash@ac.auone-net.jp> Reviewed-by: Eryu Guan <guaneryu@gmail.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
committed by
Eryu Guan
parent
ccef999f47
commit
8acea1c022
+5
-5
@@ -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
|
||||
|
||||
+3
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user