commit | 6ee52df1f377e3e223c72bc8831e15f1e23e68cb | [log] [tgz] |
---|---|---|
author | Daniel Winkler <danielwinkler@google.com> | Tue Nov 17 11:13:58 2020 -0800 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Nov 18 01:15:47 2020 +0000 |
tree | b8afb23b159107732824c1ff41fcfe2cbee4e51a | |
parent | 33b0044f3a1d9f7a8854fc7f7d82e8c0f6cfa2be [diff] |
Bluetooth: Mark connection number in pairing test We have pairing failing at a much higher rate on the second device. This change adds logic to add how many connected devices exist when the pairing test fails so that we will be able to differentiate a failure caused by a multi-device condition from the stainless dashboards. With this change, a pairing failure looks like the following: [--- failed: test_pairing ({ ... 'connection_num': 2})] BUG=b:169633231 TEST=MDHealth tests to validate that the field is added correctly Change-Id: Ic16ee60845c9361b52be1dae5240506e28ea952b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/autotest/+/2545104 Tested-by: Daniel Winkler <danielwinkler@google.com> Auto-Submit: Daniel Winkler <danielwinkler@google.com> Reviewed-by: Shijin Abraham <shijinabraham@google.com> Commit-Queue: Shijin Abraham <shijinabraham@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.
You need to run utils/build_externals.py
to set up the dependencies for pre-upload hook tests.