Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Unified Diff: src/scripts/autotest_lib.sh

Issue 1217005: fix autotest scripts for board variants (Closed)
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/scripts/build_autotest.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scripts/autotest_lib.sh
diff --git a/src/scripts/autotest_lib.sh b/src/scripts/autotest_lib.sh
index 9b95d2433a01a18d0c6421ac7b3a69ff3973b31c..311bad46fedeb8e97398689fef1d41427b913892 100644
--- a/src/scripts/autotest_lib.sh
+++ b/src/scripts/autotest_lib.sh
@@ -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
« no previous file with comments | « no previous file | src/scripts/build_autotest.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698