History log of /external/autotest/server/afe_utils.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
beb2bb20028027fa31c2790e54619c82f4d51422 04-Feb-2016 Simran Basi <sbasi@google.com> [autotest] Support adb_host repair

Implements a basic repair function for adb_host which
runs provision_AndroidUpdate if the device is reachable
via fastboot. The repair image will be retrieved from
global_config or the DB if it is set.

BUG=b:26879108
TEST=local moblab repair.

Change-Id: I26a962c1bf458a8b02ad66efbc2c2bda99530320
Reviewed-on: https://chromium-review.googlesource.com/325519
Commit-Ready: Simran Basi <sbasi@chromium.org>
Tested-by: Simran Basi <sbasi@chromium.org>
Reviewed-by: Kevin Cheng <kevcheng@chromium.org>
/external/autotest/server/afe_utils.py
aa467adf70c2adaf01159e561328ba616ad6a010 04-Feb-2016 Simran Basi <sbasi@google.com> [autotest] Verify host.job is not none before using it.

Host.job may not be set so in these instances return False
for host_in_lab.

BUG=chromium:574566
TEST=test_push on chromeos-autotest.hot

Change-Id: I28d70a87580f2fde538501816e67b7b1afffe694
Reviewed-on: https://chromium-review.googlesource.com/325860
Reviewed-by: Simran Basi <sbasi@chromium.org>
Tested-by: Simran Basi <sbasi@chromium.org>
/external/autotest/server/afe_utils.py
b3b6db3d6f9e7805fd8209317c51f4fcc3b835ac 03-Feb-2016 Dan Shi <dshi@google.com> [autotest] Add get_build back to CrosHost class.

CL 323781 removed this method. Add it back here to maintain backwards
compatibility for test control files in older CrOS builds (R48, R49 etc.)
still call host.get_build, e.g., `provision_AutoUpdate.double`.

BUG=None
TEST=local verify, unittest

Change-Id: I6964e3bddb98293e4250965603d989d71e4a2d9b
Reviewed-on: https://chromium-review.googlesource.com/325619
Commit-Ready: Dan Shi <dshi@google.com>
Tested-by: Dan Shi <dshi@chromium.org>
Reviewed-by: Kevin Cheng <kevcheng@chromium.org>
/external/autotest/server/afe_utils.py
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/afe_utils.py