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
+7
-4
@@ -24,6 +24,9 @@
|
||||
#
|
||||
|
||||
seq=`basename $0`
|
||||
seqres=$RESULT_DIR/$seq
|
||||
seqres=$RESULT_DIR/$seq
|
||||
seqres=$RESULT_DIR/$seq
|
||||
echo "QA output created by $seq"
|
||||
|
||||
here=`pwd`
|
||||
@@ -45,19 +48,19 @@ _fsx()
|
||||
echo "=== FSX Standard Mode, Memory Mapping, $tasks Tasks ==="
|
||||
for (( i = 1; i <= $tasks; i++ )); do
|
||||
SEED=$RANDOM
|
||||
echo "ltp/fsx $FSX_ARGS -S $SEED $SCRATCH_MNT/fsx_file$i" >>$seq.full
|
||||
echo "ltp/fsx $FSX_ARGS -S $SEED $SCRATCH_MNT/fsx_file$i" >>$seqres.full
|
||||
su $qa_user -c "ltp/fsx $FSX_ARGS -S $SEED \
|
||||
$SCRATCH_MNT/fsx_file$i" >$tmp.output$i 2>&1 &
|
||||
done
|
||||
|
||||
for (( i = 1; i <= $tasks; i++ )); do
|
||||
if ! wait %$i; then
|
||||
cat $tmp.output$i | tee -a $seq.full
|
||||
cat $tmp.output$i | tee -a $seqres.full
|
||||
wait
|
||||
return 1
|
||||
fi
|
||||
$XFS_IO_PROG -F -c 'fsync' $SCRATCH_MNT/fsx_file$i
|
||||
cat $tmp.output$i | tee -a $seq.full
|
||||
cat $tmp.output$i | tee -a $seqres.full
|
||||
done
|
||||
return 0
|
||||
}
|
||||
@@ -70,7 +73,7 @@ _require_quota
|
||||
_require_user
|
||||
_need_to_be_root
|
||||
|
||||
_scratch_mkfs >> $seq.full 2>&1
|
||||
_scratch_mkfs >> $seqres.full 2>&1
|
||||
_scratch_mount "-o usrquota,grpquota"
|
||||
chmod 777 $SCRATCH_MNT
|
||||
quotacheck -u -g $SCRATCH_MNT 2>/dev/null
|
||||
|
||||
Reference in New Issue
Block a user