fix autotest scripts for board variants

Review URL: http://codereview.chromium.org/1217005
This commit is contained in:
Antoine Labour 2010-03-23 21:16:33 -07:00
parent 546747b982
commit 5cc4ca136d
2 changed files with 4 additions and 2 deletions

View File

@ -15,13 +15,14 @@ function check_board() {
local board_names="" local board_names=""
local index=1 local index=1
local found=0 local found=0
local board_basename=$(echo "${FLAGS_board}" |cut -d '_' -f 1)
for overlay_path in "${SRC_ROOT}"/overlays/overlay-* for overlay_path in "${SRC_ROOT}"/overlays/overlay-*
do do
local overlay=$(basename "${overlay_path}") local overlay=$(basename "${overlay_path}")
local board="${overlay#overlay-}" local board="${overlay#overlay-}"
board_names[index]="${board}" board_names[index]="${board}"
index+=1 index+=1
if [ "${FLAGS_board}" == "${board}" ] if [ "${board_basename}" == "${board}" ]
then then
found=1 found=1
fi fi

View File

@ -52,7 +52,8 @@ do
done done
# Load the overlay specific blacklist and remove any matching tests. # Load the overlay specific blacklist and remove any matching tests.
PRIMARY_BOARD_OVERLAY="${SRC_ROOT}/overlays/overlay-${FLAGS_board}" BOARD_BASENAME=$(echo "${FLAGS_board}" |cut -d '_' -f 1)
PRIMARY_BOARD_OVERLAY="${SRC_ROOT}/overlays/overlay-${BOARD_BASENAME}"
BLACKLIST_FILE="${PRIMARY_BOARD_OVERLAY}/autotest-blacklist" BLACKLIST_FILE="${PRIMARY_BOARD_OVERLAY}/autotest-blacklist"
if [ -r "${BLACKLIST_FILE}" ] if [ -r "${BLACKLIST_FILE}" ]
then then