Skip to contentSkip to conversation

zbd/009: skip have_good_mkfs_btrfs when mkfs.btrfs not avaiable

PATCH In review Yi Zhang 2 participants 2 messages Jun 30, 2023 – Jul 3, 2023 Block layer

lore
Share & tools
lore

Yi Zhang

author
#0 lore raw

PATCH 1/1 zbd/009: skip have_good_mkfs_btrfs when mkfs.btrfs not avaiable

tests/zbd/009: line 24: mkfs.btrfs: command not found
zbd/009 (test gap zone support with BTRFS) [not run]
driver btrfs is not available
mkfs.btrfs is not available

---
 tests/zbd/009 | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
tests/zbd/009 +1 -2
index c0ce1f2..6226d83 100755
@@ -35,9 +35,8 @@ requires() {
 	_have_fio
 	_have_driver btrfs
 	_have_module_param scsi_debug zone_cap_mb
-	_have_program mkfs.btrfs
+	_have_program mkfs.btrfs && have_good_mkfs_btrfs
 	_have_module scsi_debug
-	have_good_mkfs_btrfs
 }
 
 test() {
Signature · 1 line
2.34.3
#1 lore raw
Quoted 6 lines · Yi Zhang

tests/zbd/009: line 24: mkfs.btrfs: command not found
zbd/009 (test gap zone support with BTRFS) [not run]
driver btrfs is not available
mkfs.btrfs is not available

Thanks for the fix! I've applied it with some commit message improvements.