mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-23 06:31:18 +02:00
fix autotest scripts for board variants
Review URL: http://codereview.chromium.org/1217005
This commit is contained in:
parent
546747b982
commit
5cc4ca136d
@ -15,13 +15,14 @@ function check_board() {
|
||||
local board_names=""
|
||||
local index=1
|
||||
local found=0
|
||||
local board_basename=$(echo "${FLAGS_board}" |cut -d '_' -f 1)
|
||||
for overlay_path in "${SRC_ROOT}"/overlays/overlay-*
|
||||
do
|
||||
local overlay=$(basename "${overlay_path}")
|
||||
local board="${overlay#overlay-}"
|
||||
board_names[index]="${board}"
|
||||
index+=1
|
||||
if [ "${FLAGS_board}" == "${board}" ]
|
||||
if [ "${board_basename}" == "${board}" ]
|
||||
then
|
||||
found=1
|
||||
fi
|
||||
|
@ -52,7 +52,8 @@ do
|
||||
done
|
||||
|
||||
# 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"
|
||||
if [ -r "${BLACKLIST_FILE}" ]
|
||||
then
|
||||
|
Loading…
x
Reference in New Issue
Block a user