5ace6f2e17f808efbee863a7d7dbe1bc52527a19 |
|
07-Jan-2016 |
Simran Basi <sbasi@google.com> |
[autotest] Support Android/Brillo suite runs. This change does 3 key things: 1) Enables suite runs to use the production code currently deployed on the lab servers. This disables this requirement and now run_suite.py can be passed --run_prod_code. This means that it will use the control files on the drone and SSP has been disabled. 2) Refactors out the AFE interactions for applying version labels out of the host objects. These utilities are in a new module called afe_utils. The afe_utils:host_in_lab function determines if a host is running in an lab environment and if it is in the AFE. The introduction of afe_utils enables further cleanup of the cros_host object. 3) Enables provisioning for Android/Brillo devices. Added a new site-test and provision attribute. Run_suite will determine if an Android/Brillo build is being used and will set the correct version prefix. Then the scheduler/provision code will find an appropriate device and kick off the provision_AndroidUpdate test to install the build prior to test runs. BUG=chromium:574566 TEST=On my moblab: ./run_suite.py --build=git_mnc-brillo-dev/dragonboard-userdebug/2558576 \ --board=brillo-dragonboard --suite_name=brillo-bvt --run_prod_code \ --pool='' ./site_utils/run_suite.py --board=peppy --build=peppy-release/LATEST \ --suite_name=dummy --pool='' test_that 100.96.51.40 dummy_PassServer DEPLOY=apache Change-Id: I5a81e6bd989188b7c0621e2a76752a39033f9782 Reviewed-on: https://chromium-review.googlesource.com/323781 Commit-Ready: Simran Basi <sbasi@chromium.org> Tested-by: Simran Basi <sbasi@chromium.org> Reviewed-by: Christopher Wiley <wiley@chromium.org> Reviewed-by: Fang Deng <fdeng@chromium.org> Reviewed-by: Simran Basi <sbasi@chromium.org>
/external/autotest/server/tests/reinstall/reinstall.py
|