From 7d365e49f3912a0aa2e808f5c1a01338c08101f2 Mon Sep 17 00:00:00 2001 From: Andrii Nakryiko Date: Wed, 29 Sep 2021 09:57:09 -0700 Subject: [PATCH] ci: use -a/-d with exact string match for black/white-listing Doing substring matches allows accidental new tests to be enabled, when they are not supposed to be. E.g., whitelisting "xdp" allows new "xdpwall" test on 5.5.0, which wasn't supposed to happen. Cc: Yucong Sun Signed-off-by: Andrii Nakryiko --- travis-ci/vmtest/run_selftests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/travis-ci/vmtest/run_selftests.sh b/travis-ci/vmtest/run_selftests.sh index b2d4b5b..6195a76 100755 --- a/travis-ci/vmtest/run_selftests.sh +++ b/travis-ci/vmtest/run_selftests.sh @@ -7,12 +7,12 @@ source $(cd $(dirname $0) && pwd)/helpers.sh test_progs() { if [[ "${KERNEL}" != '4.9.0' ]]; then travis_fold start test_progs "Testing test_progs" - ./test_progs ${BLACKLIST:+-b$BLACKLIST} ${WHITELIST:+-t$WHITELIST} + ./test_progs ${BLACKLIST:+-d$BLACKLIST} ${WHITELIST:+-a$WHITELIST} travis_fold end test_progs fi travis_fold start test_progs-no_alu32 "Testing test_progs-no_alu32" - ./test_progs-no_alu32 ${BLACKLIST:+-b$BLACKLIST} ${WHITELIST:+-t$WHITELIST} + ./test_progs-no_alu32 ${BLACKLIST:+-d$BLACKLIST} ${WHITELIST:+-a$WHITELIST} travis_fold end test_progs-no_alu32 }