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
@@ -45,7 +45,7 @@ FSX_ARGS="-q -l $FSX_FILE_SIZE -o 65536 -S 191110531 -N 100000"
|
||||
|
||||
_filter_num()
|
||||
{
|
||||
tee -a $here/$seqres.full |\
|
||||
tee -a $seqres.full |\
|
||||
sed -e 's/[0-9][0-9]* inodes/I inodes/g' \
|
||||
-e 's/[0-9][0-9]* paths/P paths/g' \
|
||||
-e 's/seed = [0-9][0-9]*/seed = S/'
|
||||
@@ -64,11 +64,11 @@ _fsstress()
|
||||
-f rename=10 -f fsync=2 -f write=15 -f dwrite=15 \
|
||||
-n $count -d $out -p 7`
|
||||
|
||||
echo "fsstress $args" >> tee -a $here/$seqres.full
|
||||
if ! su $qa_user -c "$FSSTRESS_PROG $args" | tee -a $here/$seqres.full | _filter_num
|
||||
echo "fsstress $args" >> tee -a $seqres.full
|
||||
if ! su $qa_user -c "$FSSTRESS_PROG $args" | tee -a $seqres.full | _filter_num
|
||||
then
|
||||
echo " fsstress $args returned $?"
|
||||
cat $tmp.out | tee -a $here/$seqres.full
|
||||
cat $tmp.out | tee -a $seqres.full
|
||||
status=1
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user