mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-23 14:41:31 +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 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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user