mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
define an _unexpected routine to handle unexpected command failure.
This commit is contained in:
@@ -110,6 +110,12 @@ _check_require_logdev()
|
||||
fi
|
||||
}
|
||||
|
||||
_unexpected()
|
||||
{
|
||||
echo " !!! unexpected XFS command failure"
|
||||
status=1
|
||||
exit
|
||||
}
|
||||
|
||||
|
||||
# real QA test starts here
|
||||
@@ -124,7 +130,7 @@ _check_mount
|
||||
_check_require_logdev
|
||||
|
||||
echo "*** set uuid"
|
||||
xfs_db -x $SCRATCH_DEV -l $SCRATCH_LOGDEV -c "uuid 02020202-0202-0202-0202-020202020202" \
|
||||
xfs_db -x $SCRATCH_DEV -l $SCRATCH_LOGDEV -c "uuid 02020202-0202-0202-0202-020202020202"
|
||||
|| _unexpected
|
||||
_check_mount
|
||||
|
||||
|
||||
Reference in New Issue
Block a user