mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfstests: fix _link_out_file callers
Currently the callers pass $seq, rather than the full path to the test. As a result, it creates the link in the top level directory and it points nowhere. Fix it to create the link in the correct place. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Phil White <pwhite@sgi.com> Signed-off-by: Rich Johnston <rjohnston@sgi.com>
This commit is contained in:
committed by
Rich Johnston
parent
1d5d46db80
commit
401680a11c
+2
-1
@@ -23,6 +23,7 @@
|
||||
#-----------------------------------------------------------------------
|
||||
#
|
||||
|
||||
seqfull=$0
|
||||
seq=`basename $0`
|
||||
seqres=$RESULT_DIR/$seq
|
||||
seqres=$RESULT_DIR/$seq
|
||||
@@ -44,7 +45,7 @@ _filter()
|
||||
}
|
||||
|
||||
# link correct .out file
|
||||
_link_out_file $seq.out
|
||||
_link_out_file $seq.out $seqfull.out
|
||||
|
||||
# real QA test starts here
|
||||
_supported_fs generic
|
||||
|
||||
+4
-3
@@ -27,6 +27,7 @@
|
||||
#-----------------------------------------------------------------------
|
||||
#
|
||||
|
||||
seqfull=$0
|
||||
seq=`basename $0`
|
||||
seqres=$RESULT_DIR/$seq
|
||||
seqres=$RESULT_DIR/$seq
|
||||
@@ -65,11 +66,11 @@ _umount_and_mount()
|
||||
|
||||
# link correct .out file
|
||||
# This is done bacause udf and xfs print attrs in different orders.
|
||||
rm -rf $seq.out
|
||||
rm -rf $seqfull.out
|
||||
if [ "$FSTYP" == "xfs" ]; then
|
||||
ln -s $seq.out.xfs $seq.out
|
||||
ln -s $seq.out.xfs $seqfull.out
|
||||
else
|
||||
ln -s $seq.out.udf $seq.out
|
||||
ln -s $seq.out.udf $seqfull.out
|
||||
fi
|
||||
|
||||
# real QA test starts here
|
||||
|
||||
Reference in New Issue
Block a user