This is the simplest way to get schedulers, and it'll always work, so
ignore the recommendation to do something fancier.
Signed-off-by: Omar Sandoval <osandov@fb.com>
test_device() {
echo "Running ${TEST_NAME}"
+ local scheds
+ # shellcheck disable=SC2207
scheds=($(sed 's/[][]//g' "${TEST_DEV_SYSFS}/queue/scheduler"))
if _test_dev_is_rotational; then
modprobe null_blk queue_mode=2 timeout='1,50,0,-1'
local scheds
+ # shellcheck disable=SC2207
scheds=($(sed 's/[][]//g' /sys/block/nullb0/queue/scheduler))
for sched in "${scheds[@]}"; do
modprobe null_blk queue_mode=2 requeue='1,10,0,-1'
local scheds
+ # shellcheck disable=SC2207
scheds=($(sed 's/[][]//g' /sys/block/nullb0/queue/scheduler))
for sched in "${scheds[@]}"; do