define an _unexpected routine to handle unexpected command failure.

This commit is contained in:
Nathan Scott
2001-09-18 23:49:43 +00:00
parent b5a59b276f
commit 681779d8ab
+7 -1
View File
@@ -110,6 +110,12 @@ _check_require_logdev()
fi fi
} }
_unexpected()
{
echo " !!! unexpected XFS command failure"
status=1
exit
}
# real QA test starts here # real QA test starts here
@@ -124,7 +130,7 @@ _check_mount
_check_require_logdev _check_require_logdev
echo "*** set uuid" 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 || _unexpected
_check_mount _check_mount