]> www.infradead.org Git - users/sagi/blktests.git/commitdiff
Ignore some shellcheck warnings
authorOmar Sandoval <osandov@fb.com>
Wed, 25 Apr 2018 22:35:45 +0000 (15:35 -0700)
committerOmar Sandoval <osandov@fb.com>
Wed, 25 Apr 2018 22:35:45 +0000 (15:35 -0700)
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>
tests/block/005
tests/block/014
tests/block/015

index e59a3e35221b08efefd5531ea24ced7061b324e0..fae59272f90b417270645862c565851df136fd80 100755 (executable)
@@ -27,6 +27,8 @@ requires() {
 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
index da5508d5bd897877a9d895d97b8409c0a8eb60c8..882a9b9f5015bc550690e1660b8b184219c6bb53 100755 (executable)
@@ -33,6 +33,7 @@ test() {
        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
index ec2f16c3b72dafa8ca73e46c2a46d5447450342a..b236a6d36bf8cdd0cfcaaa825f8c1f4d0c61c031 100755 (executable)
@@ -36,6 +36,7 @@ test() {
        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