[autotest] Translate board name in build target for certain Android boards
This is to support certain Android boards that use different board name in
build target.
BUG=b:32579855
TEST=local run, unittest
/usr/local/autotest/site_utils/suite_scheduler/suite_scheduler.py \
-d /usr/local/autotest/logs -f /usr/local/autotest/dshi/test_ss_2.ini \
-e nightly -i git_nyc-mr1-release/seed_l8150-userdebug/3405385 \
-r /tmp/_autotmp_0pjXWQ_suite_scheduler -o android
$ cat dshi/test_ss_2.ini
[Android_Bluetooth_Nightly_Seed]
run_on: nightly
hour: 4
suite: android_bluetooth
os_type: android
branches: git_nyc-mr1-release
boards: gm4g_sprout-2
targets: seed_l8150-userdebug
pool: suites
no_delay: True
also make sure boards doesn't need the mapping still works.
Change-Id: If35d8bfc4b2c7f2ea90173efb1baf16a79407801
Reviewed-on: https://chromium-review.googlesource.com/407845
Commit-Ready: Dan Shi <dshi@google.com>
Tested-by: Dan Shi <dshi@google.com>
Reviewed-by: Simran Basi <sbasi@chromium.org>
Reviewed-by: Kris Rambish <krisr@chromium.org>
diff --git a/site_utils/suite_scheduler/driver.py b/site_utils/suite_scheduler/driver.py
index e4004b7..b0cffeb 100644
--- a/site_utils/suite_scheduler/driver.py
+++ b/site_utils/suite_scheduler/driver.py
@@ -225,6 +225,8 @@
'Launch Control build.')
_,target,_ = utils.parse_launch_control_build(build_name)
board = utils.parse_launch_control_target(target)[0]
+ # Translate board name in build target to the actual board name.
+ board = utils.ANDROID_TARGET_TO_BOARD_MAP.get(board, board)
launch_control_builds = [build_name]
logging.info('Testing Launch Control build %s on %s', build_name,
board)