mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfstests: RESULTS_DIR needs to be an absolute path
Some tests 'cd <somedir>' and then direct output to $RESULT_DIR, which fails if the current working directory is not $here. Regardless, if an external results directory is to be used it needs to have a full path specified and the use of $here as the base of the results files is completely incorrect. Hence change all the $here/$seqres* references to simply be $seqres*, and instead encode the full path to the results in $RESULT_DIR. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Phil White <pwhite@sgi.com> Signed-off-by: Rich Johnston <rjohnston@sgi.com>
This commit is contained in:
committed by
Rich Johnston
parent
0b1e8abd4a
commit
e5c7cd83c4
+4
-4
@@ -192,7 +192,7 @@ _mark_iteration()
|
||||
#
|
||||
_chain()
|
||||
{
|
||||
$AWK_PROG -v full_file=$here/$seqres.full -v verify=$verify <$tmp.config '
|
||||
$AWK_PROG -v full_file=$seqres.full -v verify=$verify <$tmp.config '
|
||||
BEGIN { nfile = 0 }
|
||||
/^\#/ { next }
|
||||
{ file[nfile] = $1
|
||||
@@ -240,7 +240,7 @@ END { srand('$iter')
|
||||
}
|
||||
}
|
||||
}' \
|
||||
| tee -a $here/$seqres.full | sh
|
||||
| tee -a $seqres.full | sh
|
||||
}
|
||||
|
||||
_check()
|
||||
@@ -294,7 +294,7 @@ _cleanup()
|
||||
fi
|
||||
}
|
||||
|
||||
rm -f $here/$seqres.full
|
||||
rm -f $seqres.full
|
||||
status=0
|
||||
_cleanup
|
||||
status=1
|
||||
@@ -308,7 +308,7 @@ _setup
|
||||
for iter in 1 2 3 4 5
|
||||
do
|
||||
echo -n "iter $iter chain ... "
|
||||
echo "iter $iter" >> $here/$seqres.full
|
||||
echo "iter $iter" >> $seqres.full
|
||||
_chain
|
||||
_check
|
||||
if [ -f $tmp.bad ]
|
||||
|
||||
Reference in New Issue
Block a user