@@ -6,10 +6,6 @@
. common/shellcheck
-_have_null_blk() {
- _have_driver null_blk
-}
-
_have_null_blk_feature() {
# Ensure that null_blk driver is built-in or loaded
if ! [[ -d /sys/module/null_blk ]]; then
@@ -15,7 +15,7 @@ TIMED=1
CAN_BE_ZONED=1
requires() {
- _have_null_blk && _have_module_param null_blk blocking && _have_fio
+ _have_module_param null_blk blocking && _have_fio
}
test() {
@@ -15,7 +15,7 @@ TIMED=1
CAN_BE_ZONED=1
requires() {
- _have_null_blk && _have_module_param null_blk shared_tags && _have_fio
+ _have_module_param null_blk shared_tags && _have_fio
}
run_fio_job() {
@@ -10,7 +10,7 @@
DESCRIPTION="run null-blk with blk-mq and timeout injection configured"
requires() {
- _have_null_blk && _have_module_param null_blk timeout
+ _have_module_param null_blk timeout
}
test() {
@@ -12,7 +12,7 @@ DESCRIPTION="run null-blk on different schedulers with requeue injection configu
QUICK=1
requires() {
- _have_null_blk && _have_module_param null_blk requeue
+ _have_module_param null_blk requeue
}
test() {
@@ -14,7 +14,7 @@ QUICK=1
CAN_BE_ZONED=1
requires() {
- _have_null_blk
+ _have_driver null_blk
}
test() {
@@ -14,7 +14,7 @@ QUICK=1
CAN_BE_ZONED=1
requires() {
- _have_null_blk
+ _have_driver null_blk
}
show_inflight() {
@@ -11,7 +11,7 @@ DESCRIPTION="do I/O and check iostats times"
QUICK=1
requires() {
- _have_null_blk
+ _have_driver null_blk
}
init_times() {
@@ -14,7 +14,7 @@ QUICK=1
CAN_BE_ZONED=1
requires() {
- _have_null_blk && _have_fio
+ _have_driver null_blk && _have_fio
}
test() {
@@ -14,7 +14,7 @@ QUICK=1
CAN_BE_ZONED=1
requires() {
- _have_null_blk
+ _have_driver null_blk
}
test() {
@@ -12,7 +12,7 @@ DESCRIPTION="Test hang caused by freeze/unfreeze sequence"
TIMED=1
requires() {
- _have_null_blk && _have_module_param null_blk shared_tags
+ _have_module_param null_blk shared_tags
_require_min_cpus 2
}
@@ -13,7 +13,7 @@ QUICK=1
CAN_BE_ZONED=1
requires() {
- _have_null_blk
+ _have_driver null_blk
}
test() {
@@ -13,7 +13,7 @@ DESCRIPTION="do I/O faster than a jiffy and check iostats times"
QUICK=1
requires() {
- _have_null_blk
+ _have_driver null_blk
}
init_times() {
@@ -11,7 +11,7 @@ DESCRIPTION="trigger blk_mq_update_nr_hw_queues()"
QUICK=1
requires() {
- _have_fio && _have_null_blk
+ _have_fio && _have_driver null_blk
}
modify_nr_hw_queues() {
@@ -13,7 +13,7 @@ DESCRIPTION="trigger the blk_mq_realloc_hw_ctxs() error path"
QUICK=1
requires() {
- _have_null_blk && _have_module_param null_blk init_hctx
+ _have_module_param null_blk init_hctx
}
test() {
@@ -12,7 +12,7 @@ TIMED=1
requires() {
_have_fio
- _have_null_blk
+ _have_driver null_blk
if ! _have_null_blk_feature shared_tag_bitmap; then
_have_module_param null_blk shared_tag_bitmap
fi
@@ -12,7 +12,7 @@ DESCRIPTION="Test null-blk concurrent power/submit_queues operations"
QUICK=1
requires() {
- _have_null_blk
+ _have_driver null_blk
if ! _have_null_blk_feature submit_queues; then
SKIP_REASONS+=("null_blk does not support submit_queues")
fi
@@ -15,7 +15,7 @@ declare THROTL_CLEAR_CGROUP2_DIR_CONTROL_IO
group_requires() {
_have_root
- _have_null_blk
+ _have_driver null_blk
_have_kernel_option BLK_DEV_THROTTLING
_have_cgroup2_controller io
_have_program bc
@@ -14,7 +14,7 @@
group_requires() {
_have_root && _have_program blkzone && _have_program dd &&
- _have_kernel_option BLK_DEV_ZONED && _have_null_blk &&
+ _have_kernel_option BLK_DEV_ZONED && _have_driver null_blk &&
_have_module_param null_blk zoned
}
- _have_null_blk is same with _have_driver null_blk, it seems there is no a strong opinion to keep it. - In addition, '_have_module_param null_blk' will test _have_driver first, that means it's safe to remove its former _have_driver in require() Signed-off-by: Li Zhijian <lizhijian@fujitsu.com> --- common/null_blk | 4 ---- tests/block/006 | 2 +- tests/block/010 | 2 +- tests/block/014 | 2 +- tests/block/015 | 2 +- tests/block/016 | 2 +- tests/block/017 | 2 +- tests/block/018 | 2 +- tests/block/020 | 2 +- tests/block/021 | 2 +- tests/block/022 | 2 +- tests/block/023 | 2 +- tests/block/024 | 2 +- tests/block/029 | 2 +- tests/block/030 | 2 +- tests/block/031 | 2 +- tests/block/038 | 2 +- tests/throtl/rc | 2 +- tests/zbd/rc | 2 +- 19 files changed, 18 insertions(+), 22 deletions(-)