xfs: fix check of whether the mkfs fail
[xfstests-dev.git] / tests / xfs / 448
index 493d303e62cf4fa6c490802fe6f95f8a82a00783..a11698fa2d8c70ece48020abb71d7d97406c33eb 100755 (executable)
@@ -47,7 +47,8 @@ _require_no_xfs_bug_on_assert
 rm -f "$seqres.full"
 
 # Format and mount
-_scratch_mkfs | _filter_mkfs > $seqres.full 2> $tmp.mkfs || _fail "mkfs failed"
+_scratch_mkfs | _filter_mkfs > $seqres.full 2> $tmp.mkfs
+test "${PIPESTATUS[0]}" -eq 0 || _fail "mkfs failed"
 _scratch_mount
 
 # Get directory block size