commit | 7ccc1bbd8fffe770711d1f76327447d4edbea9a6 | [log] [tgz] |
---|---|---|
author | Mike Frysinger <vapier@chromium.org> | Sat Oct 19 20:26:34 2019 +0000 |
committer | Mike Frysinger <vapier@chromium.org> | Sat Oct 19 20:27:55 2019 +0000 |
tree | bcbb7750f5965aaef92f9b401a3e6530408ae86f | |
parent | 55b3bfad6d8cbaf14536d9a32991805bff542cfb [diff] |
Revert "deployment: Change deploy workflow to install test image and then install firmware." This reverts commit cb6524d9492e592ba0ef6df5472dc5286cbc1c43. Reason for revert: Breaks autotest_lib.site_utils.deployment.cmdparse_unittest: FAIL: test_repair_defaults (autotest_lib.site_utils.deployment.cmdparse_unittest._CommandParserTestCase) Test argument defaults for `deploy repair`. ---------------------------------------------------------------------- Traceback (most recent call last): File "/mnt/host/source/src/third_party/autotest/files/site_utils/deployment/cmdparse_unittest.py", line 220, in test_repair_defaults self.assertTrue(arguments.install_test_image) AssertionError: False is not true Which breaks all bots in the CQ. Original change's description: > deployment: Change deploy workflow to install test image and then install firmware. > > BUG=chromium:995451 > TEST=run deploy locally > > Change-Id: I94977fa06c6b53f094a435521a801c236efdbed8 > Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/autotest/+/1841840 > Reviewed-by: Xixuan Wu <xixuan@chromium.org> > Tested-by: Garry Wang <xianuowang@chromium.org> > Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org> Bug: chromium:995451 Exempt-From-Owner-Approval: it's the weekend and everything is red! Change-Id: I71a82e06d8a30fb929b132ca87c537df5e7e703d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/autotest/+/1869821 Tested-by: Mike Frysinger <vapier@chromium.org> Reviewed-by: Mike Frysinger <vapier@chromium.org>
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.
You need to run utils/build_externals.py
to set up the dependencies for pre-upload hook tests.