]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
xfs/015: check _scratch_mkfs_sized return code
authorShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Fri, 18 Feb 2022 07:31:55 +0000 (16:31 +0900)
committerEryu Guan <guaneryu@gmail.com>
Sun, 20 Feb 2022 17:01:19 +0000 (01:01 +0800)
commit1a7e6b57172d054823e7ea39110cf6dff1500065
tree19951370b685c1957b08e96c9c86f311ebe40928
parentba2dedfb6ad7452da1378d216310932d8254e718
xfs/015: check _scratch_mkfs_sized return code

The test cases xfs/015 calls _scratch_mkfs before _scratch_mkfs_sized,
and does not check return code of _scratch_mkfs_sized. Even if
_scratch_mkfs_sized failed, _scratch_mount after it cannot detect the
sized mkfs failure because _scratch_mkfs already created a file system
on the device. This results in unexpected test condition.

To avoid the unexpected test condition, check return code of
_scratch_mkfs_sized.

Suggested-by: Naohiro Aota <naohiro.aota@wdc.com>
Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/xfs/015