mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfs/178: fix mkfs success test
Fix the obviously incorrect code here that wants to fail the test if
mkfs doesn't succeed. The return value ("$?") is always the status of
the /last/ command in the pipe.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
committed by
Eryu Guan
parent
0049872c9a
commit
993887b25c
+2
-2
@@ -57,8 +57,8 @@ _supported_fs xfs
|
||||
# fix filesystem, new mkfs.xfs will be fine.
|
||||
|
||||
_require_scratch
|
||||
_scratch_mkfs_xfs | _filter_mkfs 2>$tmp.mkfs \
|
||||
|| _fail "mkfs failed!"
|
||||
_scratch_mkfs_xfs | _filter_mkfs 2>$tmp.mkfs
|
||||
test "${PIPESTATUS[0]}" -eq 0 || _fail "mkfs failed!"
|
||||
|
||||
# By executing the followint tmp file, will get on the mkfs options stored in
|
||||
# variables
|
||||
|
||||
Reference in New Issue
Block a user