]> www.infradead.org Git - users/sagi/blktests.git/commitdiff
check: fix test group inclusion vs. exclusion
authorOmar Sandoval <osandov@fb.com>
Fri, 5 May 2017 06:30:49 +0000 (23:30 -0700)
committerOmar Sandoval <osandov@fb.com>
Fri, 5 May 2017 06:30:49 +0000 (23:30 -0700)
If a test belongs to a group which is included and also a group which is
excluded, the exclusion should take precedence.

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

diff --git a/check b/check
index e3272aab86b77e3ac050b35013c699bc6b325663..d14bf5a790da1e3d96c2bb2681f1e2a6f3c31cd3 100755 (executable)
--- a/check
+++ b/check
@@ -345,7 +345,6 @@ _should_run_test() {
        for group in "${TEST_GROUPS[@]}"; do
                if [[ -n ${INCLUDE_GROUPS[$group]} ]]; then
                        ret=0
-                       break
                fi
                if [[ -n ${EXCLUDE_GROUPS[$group]} ]]; then
                        return 1