mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfstests: use _notrun for tape checks
_require_tape is failing tests when no TAPE_DEV is specified. It should be using _notrun for these cases rather than trying to open code the $seqres.notrun magic file manipulations. 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
af64c57be3
commit
c74db9e225
+3
-10
@@ -139,9 +139,7 @@ _check_onl()
|
|||||||
echo "ERROR: mt -f $dumptape failed"
|
echo "ERROR: mt -f $dumptape failed"
|
||||||
cat $tmp.status
|
cat $tmp.status
|
||||||
|
|
||||||
echo "mt -f $dumptape failed" >$seq.notrun
|
_notrun "mt -f $dumptape failed"
|
||||||
status=$NOTRUNSTS
|
|
||||||
exit
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
@@ -151,9 +149,7 @@ _check_onl()
|
|||||||
echo "ERROR: $dumptape is not online"
|
echo "ERROR: $dumptape is not online"
|
||||||
cat $tmp.status
|
cat $tmp.status
|
||||||
|
|
||||||
echo "dumptape, $dumptape, is not online" >$seq.notrun
|
_notrun "dumptape, $dumptape, is not online"
|
||||||
status=$NOTRUNSTS
|
|
||||||
exit
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -229,10 +225,7 @@ _require_tape()
|
|||||||
dumptape=$1
|
dumptape=$1
|
||||||
|
|
||||||
if [ -z "$dumptape" -o "@" == "$dumptape" ]; then
|
if [ -z "$dumptape" -o "@" == "$dumptape" ]; then
|
||||||
echo "This test requires a dump tape - none was specified"
|
_notrun "No dump tape specified"
|
||||||
echo "No dump tape specified" >$seqres.notrun
|
|
||||||
status=$NOTRUNSTS
|
|
||||||
exit
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_check_onl
|
_check_onl
|
||||||
|
|||||||
Reference in New Issue
Block a user