mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfstests: convert tests to use new results directory
Essentially the change is simply this. Converting: ... >> $seq.???? to: .... >> $RESULT_DIR/$seq.???? so that output files are directed to the defined output directory. sed to the rescue: $ sed -i -e '/^seq=.*$/a seqres=$RESULT_DIR/$seq' -e 's/seq.full/seqres.full/' tests/*/* will do most of the work automatically. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Phil White <pwhite@sgi.com> [rjohnston@sgi.com reworked for TOT changes] Signed-off-by: Rich Johnston <rjohnston@sgi.com>
This commit is contained in:
committed by
Rich Johnston
parent
1686f9abfc
commit
1d5d46db80
+10
-7
@@ -23,6 +23,9 @@
|
||||
#
|
||||
|
||||
seq=`basename $0`
|
||||
seqres=$RESULT_DIR/$seq
|
||||
seqres=$RESULT_DIR/$seq
|
||||
seqres=$RESULT_DIR/$seq
|
||||
echo "QA output created by $seq"
|
||||
|
||||
here=`pwd`
|
||||
@@ -58,13 +61,13 @@ _require_scratch
|
||||
|
||||
echo "*** init fs"
|
||||
|
||||
rm -f $seq.full
|
||||
rm -f $seqres.full
|
||||
umount $SCRATCH_DEV >/dev/null 2>&1
|
||||
echo "*** MKFS ***" >>$seq.full
|
||||
echo "" >>$seq.full
|
||||
_scratch_mkfs >>$seq.full 2>&1 \
|
||||
echo "*** MKFS ***" >>$seqres.full
|
||||
echo "" >>$seqres.full
|
||||
_scratch_mkfs >>$seqres.full 2>&1 \
|
||||
|| _fail "mkfs failed"
|
||||
_scratch_mount >>$seq.full 2>&1 \
|
||||
_scratch_mount >>$seqres.full 2>&1 \
|
||||
|| _fail "mount failed"
|
||||
|
||||
echo "*** test concurrent block/fs access"
|
||||
@@ -73,8 +76,8 @@ cat $SCRATCH_DEV >/dev/null &
|
||||
pid=$!
|
||||
|
||||
FSSTRESS_ARGS=`_scale_fsstress_args -p 2 -n 2000 $FSSTRESS_AVOID`
|
||||
echo "run fsstress with args: $FSSTRESS_ARGS" >>$seq.full
|
||||
$FSSTRESS_PROG $FSSTRESS_ARGS >>$seq.full
|
||||
echo "run fsstress with args: $FSSTRESS_ARGS" >>$seqres.full
|
||||
$FSSTRESS_PROG $FSSTRESS_ARGS >>$seqres.full
|
||||
_lets_get_pidst
|
||||
_check_scratch_fs
|
||||
|
||||
|
||||
Reference in New Issue
Block a user