mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-10 22:46:58 +02:00
Add a blacklist to disable autotests that don't build
TEST=built on arm-generic, x86-generic BUG=none Review URL: http://codereview.chromium.org/1004003
This commit is contained in:
parent
8f0c5d92b0
commit
8926b7d447
@ -37,14 +37,30 @@ check_board
|
|||||||
|
|
||||||
# build default pre-compile client tests list.
|
# build default pre-compile client tests list.
|
||||||
ALL_TESTS="compilebench,dbench,disktest,ltp,netperf2,unixbench"
|
ALL_TESTS="compilebench,dbench,disktest,ltp,netperf2,unixbench"
|
||||||
for SITE_TEST in ../third_party/autotest/files/client/site_tests/*
|
CLIENT_TEST_PATH="../third_party/autotest/files/client/site_tests"
|
||||||
|
for SITE_TEST in ${CLIENT_TEST_PATH}/*
|
||||||
do
|
do
|
||||||
if [ -d ${SITE_TEST} ]
|
if [ -d ${SITE_TEST} ]
|
||||||
then
|
then
|
||||||
ALL_TESTS="${ALL_TESTS},${SITE_TEST:48}"
|
ALL_TESTS="${ALL_TESTS},${SITE_TEST##${CLIENT_TEST_PATH}/}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Load the overlay specific blacklist and remove any matching tests.
|
||||||
|
PRIMARY_BOARD_OVERLAY="${SRC_ROOT}/overlays/overlay-${FLAGS_board}"
|
||||||
|
BLACKLIST_FILE="${PRIMARY_BOARD_OVERLAY}/autotest-blacklist"
|
||||||
|
if [ -r "${BLACKLIST_FILE}" ]
|
||||||
|
then
|
||||||
|
BLACKLISTED_TESTS=$(cat ${BLACKLIST_FILE})
|
||||||
|
|
||||||
|
for TEST in ${BLACKLISTED_TESTS}
|
||||||
|
do
|
||||||
|
ALL_TESTS=${ALL_TESTS/#${TEST},/} # match first test (test,...)
|
||||||
|
ALL_TESTS=${ALL_TESTS/,${TEST},/,} # match middle tests (...,test,...)
|
||||||
|
ALL_TESTS=${ALL_TESTS/%,${TEST}/} # match last test (...,test)
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
if [ ${FLAGS_build} == ${DEFAULT_TESTS_LIST} ]
|
if [ ${FLAGS_build} == ${DEFAULT_TESTS_LIST} ]
|
||||||
then
|
then
|
||||||
if [ ${FLAGS_prompt} -eq ${FLAGS_TRUE} ]
|
if [ ${FLAGS_prompt} -eq ${FLAGS_TRUE} ]
|
||||||
|
Loading…
Reference in New Issue
Block a user