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
+11
-8
@@ -27,6 +27,9 @@
|
||||
#
|
||||
|
||||
seq=`basename $0`
|
||||
seqres=$RESULT_DIR/$seq
|
||||
seqres=$RESULT_DIR/$seq
|
||||
seqres=$RESULT_DIR/$seq
|
||||
echo "QA output created by $seq"
|
||||
|
||||
here=`pwd`
|
||||
@@ -43,17 +46,17 @@ trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
|
||||
_supported_fs xfs
|
||||
_supported_os IRIX Linux
|
||||
|
||||
rm -f $seq.full
|
||||
rm -f $seqres.full
|
||||
rm -f $tmp.log
|
||||
|
||||
_require_scratch
|
||||
|
||||
echo "mkfs"
|
||||
_scratch_mkfs_xfs >>$seq.full 2>&1 \
|
||||
_scratch_mkfs_xfs >>$seqres.full 2>&1 \
|
||||
|| _fail "mkfs scratch failed"
|
||||
|
||||
echo "mount"
|
||||
_scratch_mount >>$seq.full 2>&1 \
|
||||
_scratch_mount >>$seqres.full 2>&1 \
|
||||
|| _fail "mount failed: $MOUNT_OPTIONS"
|
||||
|
||||
# num_files must be greater than 64 (XFS_AGI_UNLINKED_BUCKETS)
|
||||
@@ -68,7 +71,7 @@ src/multi_open_unlink -f $SCRATCH_MNT/test_file -n $num_files -s $delay &
|
||||
sleep 3
|
||||
|
||||
echo "godown"
|
||||
src/godown -v -f $SCRATCH_MNT >> $seq.full
|
||||
src/godown -v -f $SCRATCH_MNT >> $seqres.full
|
||||
|
||||
# time for multi_open_unlink to exit out after its delay
|
||||
# so we have no references and can unmount
|
||||
@@ -81,11 +84,11 @@ echo "logprint after going down..."
|
||||
_print_logstate
|
||||
|
||||
echo "mount with replay"
|
||||
_scratch_mount $mnt >>$seq.full 2>&1 \
|
||||
_scratch_mount $mnt >>$seqres.full 2>&1 \
|
||||
|| _fail "mount failed: $mnt $MOUNT_OPTIONS"
|
||||
|
||||
echo "godown"
|
||||
src/godown -v -f $SCRATCH_MNT >> $seq.full
|
||||
src/godown -v -f $SCRATCH_MNT >> $seqres.full
|
||||
|
||||
echo "unmount"
|
||||
umount $SCRATCH_MNT
|
||||
@@ -94,7 +97,7 @@ echo "logprint after going down..."
|
||||
_print_logstate
|
||||
|
||||
echo "logprint to check for CLEAR_AGI_BUCKET..."
|
||||
if _scratch_xfs_logprint -t | tee -a $seq.full | grep CLEAR; then
|
||||
if _scratch_xfs_logprint -t | tee -a $seqres.full | grep CLEAR; then
|
||||
echo 'CLEAR_AGI_BUCKET transactions found!!'
|
||||
echo 'Are you running with an old xfs kernel - where the bug still exists?'
|
||||
else
|
||||
@@ -102,7 +105,7 @@ else
|
||||
fi
|
||||
|
||||
# clean up dirty log with log recovery on mount
|
||||
_scratch_mount >> $seq.full 2>&1 \
|
||||
_scratch_mount >> $seqres.full 2>&1 \
|
||||
|| _fail "mount failed"
|
||||
|
||||
# should now be peaches
|
||||
|
||||
Reference in New Issue
Block a user