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
+6
-3
@@ -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`
|
||||
@@ -44,7 +47,7 @@ _workout()
|
||||
enospc_time=2
|
||||
out=$SCRATCH_MNT/fsstress.$$
|
||||
args=`_scale_fsstress_args -p128 -n999999999 -f setattr=1 $FSSTRESS_AVOID -d $out`
|
||||
echo "fsstress $args" >> $here/$seq.full
|
||||
echo "fsstress $args" >> $here/$seqres.full
|
||||
$FSSTRESS_PROG $args > /dev/null 2>&1 &
|
||||
pid=$!
|
||||
echo "Run dd writers in parallel"
|
||||
@@ -52,7 +55,7 @@ _workout()
|
||||
do
|
||||
# File will be opened with O_TRUNC each time
|
||||
dd if=/dev/zero of=$SCRATCH_MNT/SPACE_CONSUMER bs=1M \
|
||||
>> $here/$seq.full 2>&1
|
||||
>> $here/$seqres.full 2>&1
|
||||
sleep $enospc_time
|
||||
done
|
||||
kill $pid
|
||||
@@ -65,7 +68,7 @@ _supported_os Linux
|
||||
_need_to_be_root
|
||||
_require_scratch
|
||||
|
||||
_scratch_mkfs_sized $((512 * 1024 * 1024)) >> $seq.full 2>&1
|
||||
_scratch_mkfs_sized $((512 * 1024 * 1024)) >> $seqres.full 2>&1
|
||||
_scratch_mount
|
||||
|
||||
if ! _workout; then
|
||||
|
||||
Reference in New Issue
Block a user