commit | 45693c2b5a3b65dfcf2486155b015978a135bd4f | [log] [tgz] |
---|---|---|
author | Kyle Shimabukuro <kyleshima@chromium.org> | Fri Jun 26 16:21:22 2020 -0700 |
committer | Commit Bot <commit-bot@chromium.org> | Sat Jun 27 05:35:59 2020 +0000 |
tree | e708339ee78131514b625d220622a7579ebc8406 | |
parent | 26e6551a2e635b950a7df8677936f948fc348d62 [diff] |
Fix for unicode payload_url passed to nebraska_wrapper.py NebraskaWrapper can now take either a single payload_url or a list of payload_url's to handle DLCs together with platform payloads. When normalizing payload_url to be a list, we were explicitly checking if payload_url was a string. However when the tests run in the lab, payload_url ends up being a unicode string, so it wasn't properly normalized into a list and all the further operations were being done on single characters of the URL. To fix this, change the normalization step to just check if payload_url isn't None or a list, so we don't have to worry about what kind of string we're getting. BUG=chromium:1099918 TEST=autoupdate_FromUI.full, autoupdate_DataPreserved.Full, autoupdate_NonBlockingOOBEUpdate.delta, and the same tests modified with payload_url = unicode(payload_url). Example test command: test_that chromeos6-row12-rack23-host17.cros autoupdate_FromUI.full -b atlas -i 'atlas-release/R85-13308.0.0' --no-retry --autotest_dir ~/trunk/src/third_party/autotest/files --args="job_repo_url=http://100.115.168.195:8082/static/atlas-release/R85-13308.0.0/autotest/packages" Change-Id: I5f3e0c135b78ce25c9919a317905d06d3319b2f5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/autotest/+/2271217 Tested-by: Kyle Shimabukuro <kyleshima@chromium.org> Reviewed-by: Amin Hassani <ahassani@chromium.org> Commit-Queue: Kyle Shimabukuro <kyleshima@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.