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
@@ -34,6 +34,9 @@
|
||||
#
|
||||
|
||||
seq=`basename $0`
|
||||
seqres=$RESULT_DIR/$seq
|
||||
seqres=$RESULT_DIR/$seq
|
||||
seqres=$RESULT_DIR/$seq
|
||||
echo "QA output created by $seq"
|
||||
|
||||
here=`pwd`
|
||||
@@ -77,7 +80,7 @@ _rmv_eas()
|
||||
|
||||
_filter_inode()
|
||||
{
|
||||
tee -a $here/$seq.full | \
|
||||
tee -a $here/$seqres.full | \
|
||||
sed -e "s/core.forkoff/forkoff/g" | \
|
||||
egrep '^u.sfdir2|^a.sfattr|forkoff' | \
|
||||
egrep -v 'inumber|parent'
|
||||
@@ -85,7 +88,7 @@ _filter_inode()
|
||||
|
||||
_filter_version()
|
||||
{
|
||||
tee -a $here/$seq.full | tr ',' '\n' | grep ATTR
|
||||
tee -a $here/$seqres.full | tr ',' '\n' | grep ATTR
|
||||
}
|
||||
|
||||
_print_inode()
|
||||
@@ -148,7 +151,7 @@ _supported_os Linux
|
||||
_require_scratch
|
||||
_require_attrs
|
||||
|
||||
rm -f $seq.full
|
||||
rm -f $seqres.full
|
||||
|
||||
_scratch_mkfs -i attr=2,size=512 -l lazy-count=1 >/dev/null 2>&1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user