define an _unexpected routine to handle unexpected command failure.
[xfstests-dev.git] / 044
diff --git a/044 b/044
index 014e54512ceaef357322a9b23374f9635b4eb62d..af6e7604cbcd2920a39d1a5e44573074f07d6ec9 100755 (executable)
--- a/044
+++ b/044
@@ -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
 
 echo "*** set uuid"
 _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
 
     || _unexpected
 _check_mount