The offline cpus cannot be restored during _cleanup when only _offline_cpu executed, fix it by reset RESTORE_CPUS_ONLINE=1 during test. Fixes: bd6b882 ("block/008: check CPU offline failure due to many IRQs") Signed-off-by: Yi Zhang <yi.zhang@xxxxxxxxxx> --- tests/block/008 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/block/008 b/tests/block/008 index 75aae65..f61f33a 100755 --- a/tests/block/008 +++ b/tests/block/008 @@ -91,6 +91,11 @@ test_device() { fi done + # The RESTORE_CPUS_ONLINE setting was ignored with previous + # err=$(_offline_cpu "${online_cpus[$idx]}" when only _offline_cpu + # executed, reset it here then the offline cpus can be retored + # shellcheck disable=SC2034 + RESTORE_CPUS_ONLINE=1 FIO_PERF_FIELDS=("read iops") _fio_perf_report -- 2.34.1