From: Nathan Scott Date: Tue, 18 Sep 2001 23:49:43 +0000 (+0000) Subject: define an _unexpected routine to handle unexpected command failure. X-Git-Tag: v1.1.0~1211 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=681779d8abc1be6e8e69907f2e74c7a6b1227b29;p=xfstests-dev.git define an _unexpected routine to handle unexpected command failure. --- diff --git a/044 b/044 index 014e5451..af6e7604 100755 --- a/044 +++ b/044 @@ -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