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
+4
-1
@@ -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`
|
||||
@@ -40,7 +43,7 @@ _supported_os Linux
|
||||
_need_to_be_root
|
||||
_require_scratch
|
||||
|
||||
_scratch_mkfs_sized $((128 * 1024 * 1024)) >> $seq.full 2>&1
|
||||
_scratch_mkfs_sized $((128 * 1024 * 1024)) >> $seqres.full 2>&1
|
||||
|
||||
# -onoload and EXT4_SYNC_FL on file is important becase result in
|
||||
# metadata sync writes inside ext4_handle_dirty_metadata()
|
||||
|
||||
+5
-2
@@ -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`
|
||||
@@ -101,13 +104,13 @@ _workout()
|
||||
echo ""
|
||||
echo " Start defragment activity"
|
||||
echo ""
|
||||
cat $tmp-$seq.fio >> $seq.full
|
||||
cat $tmp-$seq.fio >> $seqres.full
|
||||
run_check $FIO_PROG $tmp-$seq.fio
|
||||
}
|
||||
|
||||
_require_fio $tmp-$seq.fio
|
||||
|
||||
_scratch_mkfs >> $seq.full 2>&1
|
||||
_scratch_mkfs >> $seqres.full 2>&1
|
||||
_scratch_mount
|
||||
|
||||
if ! _workout; then
|
||||
|
||||
+5
-2
@@ -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`
|
||||
@@ -117,13 +120,13 @@ _workout()
|
||||
echo ""
|
||||
echo " Start defragment activity"
|
||||
echo ""
|
||||
cat $tmp-$seq.fio >> $seq.full
|
||||
cat $tmp-$seq.fio >> $seqres.full
|
||||
run_check $FIO_PROG $tmp-$seq.fio
|
||||
}
|
||||
|
||||
_require_fio $tmp-$seq.fio
|
||||
|
||||
_scratch_mkfs >> $seq.full 2>&1
|
||||
_scratch_mkfs >> $seqres.full 2>&1
|
||||
_scratch_mount
|
||||
|
||||
if ! _workout; then
|
||||
|
||||
+5
-2
@@ -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`
|
||||
@@ -127,13 +130,13 @@ _workout()
|
||||
echo ""
|
||||
echo " Start defragment activity"
|
||||
echo ""
|
||||
cat $tmp-$seq.fio >> $seq.full
|
||||
cat $tmp-$seq.fio >> $seqres.full
|
||||
run_check $FIO_PROG $tmp-$seq.fio
|
||||
}
|
||||
|
||||
_require_fio $tmp-$seq.fio
|
||||
|
||||
_scratch_mkfs >> $seq.full 2>&1
|
||||
_scratch_mkfs >> $seqres.full 2>&1
|
||||
_scratch_mount
|
||||
|
||||
if ! _workout; then
|
||||
|
||||
+5
-2
@@ -25,6 +25,9 @@
|
||||
#
|
||||
|
||||
seq=`basename $0`
|
||||
seqres=$RESULT_DIR/$seq
|
||||
seqres=$RESULT_DIR/$seq
|
||||
seqres=$RESULT_DIR/$seq
|
||||
echo "QA output created by $seq"
|
||||
|
||||
here=`pwd`
|
||||
@@ -104,13 +107,13 @@ _workout()
|
||||
echo ""
|
||||
echo " Start defragment activity"
|
||||
echo ""
|
||||
cat $tmp-$seq.fio >> $seq.full
|
||||
cat $tmp-$seq.fio >> $seqres.full
|
||||
run_check $FIO_PROG $tmp-$seq.fio
|
||||
}
|
||||
|
||||
_require_fio $tmp-$seq.fio
|
||||
|
||||
_scratch_mkfs >> $seq.full 2>&1
|
||||
_scratch_mkfs >> $seqres.full 2>&1
|
||||
_scratch_mount
|
||||
|
||||
if ! _workout; then
|
||||
|
||||
Reference in New Issue
Block a user