commit | 97d85b64bf66fd7a1d5e78853a55cb3284a0059c | [log] [tgz] |
---|---|---|
author | Sean Paul <seanpaul@chromium.org> | Wed Jun 28 10:50:34 2017 -0400 |
committer | chrome-bot <chrome-bot@chromium.org> | Wed Jun 28 14:45:12 2017 -0700 |
tree | dcfd7b49cc6dbb91689e97e0a1c410d4eb617f2c | |
parent | 1ab88d25b45dac3a400dfcd088e0e4f0118960df [diff] |
[autotest] Fix module not found error in gmail_lib metrics_mock is not located in site_utils. This fixes: Traceback (most recent call last): File "/mnt/host/source/src/third_party/autotest/files/site_utils/test_that.py", line 24, in <module> from autotest_lib.site_utils import test_runner_utils File "/mnt/host/source/src/third_party/autotest/files/site_utils/test_runner_utils.py", line 28, in <module> from autotest_lib.server import autoserv_utils File "/mnt/host/source/src/third_party/autotest/files/server/autoserv_utils.py", line 13, in <module> from autotest_lib.scheduler import drone_manager File "/mnt/host/source/src/third_party/autotest/files/scheduler/drone_manager.py", line 10, in <module> from autotest_lib.scheduler import drone_utility File "/mnt/host/source/src/third_party/autotest/files/scheduler/drone_utility.py", line 39, in <module> from autotest_lib.scheduler import email_manager File "/mnt/host/source/src/third_party/autotest/files/scheduler/email_manager.py", line 13, in <module> from autotest_lib.site_utils import gmail_lib File "/mnt/host/source/src/third_party/autotest/files/site_utils/gmail_lib.py", line 47, in <module> metrics = site_utils.metrics_mock AttributeError: 'module' object has no attribute 'metrics_mock' Signed-off-by: Sean Paul <seanpaul@chromium.org> BUG=None TEST=test_that doesn't crash when run Change-Id: I47e164bb31435d103b73e0d9b5a393378720645e Reviewed-on: https://chromium-review.googlesource.com/552302 Commit-Ready: Sean Paul <seanpaul@chromium.org> Tested-by: Sean Paul <seanpaul@chromium.org> Reviewed-by: Dan Shi <dshi@google.com>
Autotest is a framework for fully automated testing. It was originally designed to test the Linux kernel, and expanded by the Chrome OS team to validate complete system images of Chrome OS and Android.
Autotest is composed of a number of modules that will help you to do stand alone tests or setup a fully automated test grid, depending on what you are up to. A non extensive list of functionality is:
A body of code to run tests on the device under test. In this setup, test logic executes on the machine being tested, and results are written to files for later collection from a development machine or lab infrastructure.
A body of code to run tests against a remote device under test. In this setup, test logic executes on a development machine or piece of lab infrastructure, and the device under test is controlled remotely via SSH/adb/some combination of the above.
Developer tools to execute one or more tests. test_that
for Chrome OS and test_droid
for Android allow developers to run tests against a device connected to their development machine on their desk. These tools are written so that the same test logic that runs in the lab will run at their desk, reducing the number of configurations under which tests are run.
Lab infrastructure to automate the running of tests. This infrastructure is capable of managing and running tests against thousands of devices in various lab environments. This includes code for both synchronous and asynchronous scheduling of tests. Tests are run against this hardware daily to validate every build of Chrome OS.
Infrastructure to set up miniature replicas of a full lab. A full lab does entail a certain amount of administrative work which isn't appropriate for a work group interested in automated tests against a small set of devices. Since this scale is common during device bringup, a special setup, called Moblab, allows a natural progressing from desk -> mini lab -> full lab.
See the guides to test_that
and test_droid
:
See the best practices guide, existing tests, and comments in the code.
git clone https://chromium.googlesource.com/chromiumos/third_party/autotest
See the coding style guide for guidance on submitting patches.