]> www.infradead.org Git - users/sagi/blktests.git/commitdiff
Don't skip all devices if device_requires fails on one
authorOmar Sandoval <osandov@fb.com>
Fri, 19 May 2017 17:28:48 +0000 (10:28 -0700)
committerOmar Sandoval <osandov@fb.com>
Fri, 19 May 2017 17:28:48 +0000 (10:28 -0700)
Fixes #2.

Signed-off-by: Omar Sandoval <osandov@fb.com>
check

diff --git a/check b/check
index 26c5189b6e274e779fda69386fd1e29110a4ef1d..d445959d50e234cc0a8cd757cf7b66f9f1b5e125 100755 (executable)
--- a/check
+++ b/check
@@ -395,7 +395,7 @@ _run_test() {
                        TEST_DEV_SYSFS="${TEST_DEV_SYSFS_DIRS["$TEST_DEV"]}"
                        if declare -fF device_requires >/dev/null && ! device_requires; then
                                _output_notrun "$TEST_NAME => $(basename "$TEST_DEV")"
-                               return 0
+                               continue
                        fi
                        RESULTS_DIR="results/$(basename "$TEST_DEV")"
                        if ! _call_test test_device; then