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
@@ -24,6 +24,9 @@
|
||||
#creator
|
||||
|
||||
seq=`basename $0`
|
||||
seqres=$RESULT_DIR/$seq
|
||||
seqres=$RESULT_DIR/$seq
|
||||
seqres=$RESULT_DIR/$seq
|
||||
echo "QA output created by $seq"
|
||||
|
||||
here=`pwd`
|
||||
@@ -91,7 +94,7 @@ _porter()
|
||||
exit
|
||||
fi
|
||||
|
||||
cp -r $SCRATCH_MNT/origin $SCRATCH_MNT/sub_$_suffix >>$seq.full 2>&1
|
||||
cp -r $SCRATCH_MNT/origin $SCRATCH_MNT/sub_$_suffix >>$seqres.full 2>&1
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
echo "_porter $_suffix not complete"
|
||||
@@ -129,10 +132,10 @@ echo "------------------------------"
|
||||
echo "start the workload"
|
||||
echo "------------------------------"
|
||||
|
||||
rm -f $seq.full
|
||||
rm -f $seqres.full
|
||||
|
||||
_scratch_unmount 2>/dev/null
|
||||
_scratch_mkfs_sized $((2 * 1024 * 1024 * 1024)) >>$seq.full 2>&1
|
||||
_scratch_mkfs_sized $((2 * 1024 * 1024 * 1024)) >>$seqres.full 2>&1
|
||||
_scratch_mount
|
||||
|
||||
_do_workload
|
||||
|
||||
Reference in New Issue
Block a user