Revert "Add applicable_models to TestConfig."

This reverts commit 5b5ddff0e8c3bab5634e4d4753df6ae8577934de.

Reason for revert: breaks chromite unit tests, as in https://ci.chromium.org/p/chromeos/builders/cq/chromite-cq/b8900050863131122272 


======================================================================
ERROR: [chromite.lib.paygen.paygen_build_lib_unittest] HWTest.testTestPlan
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/mnt/host/source/chromite/lib/timeout_util.py", line 191, in TimeoutWrapper
    return func(*args, **kwargs)
  File "/mnt/host/source/chromite/lib/paygen/paygen_build_lib_unittest.py", line 1327, in testTestPlan
    build='dummy-build')
  File "/mnt/host/source/chromite/lib/paygen/paygen_build_lib.py", line 1248, in _TestPlan
    shown_test_name = '%s_%s' % (test_name, payload_test.unique_name_suffix())
  File "/mnt/host/source/src/third_party/autotest/files/site_utils/autoupdate/lib/test_params.py", line 132, in unique_name_suffix
    self.source_release, self.payload_type.lower())
AttributeError: 'NoneType' object has no attribute 'lower'


Original change's description:
> Add applicable_models to TestConfig.
> 
> The applicable_models are the list of models that an FSI config should
> run against. These come from the paygen.json provided by GE and will be
> passed in here by chromite's paygen_build_lib. Currently we run all FSI
> configs on all unibuild models. With the applicable_models list here it
> will be easy to filter configs by model.
> 
> Also removes a hack for figuring out suffix of test name in a previous
> CL while I waited for a chromite CL to land.
> 
> BUG=chromium:909972
> TEST=tryjob
> 
> Change-Id: I19b0845467aad0a09832f073fb0df53b9e37ee78
> Reviewed-on: https://chromium-review.googlesource.com/1834105
> Tested-by: David Haddock <dhaddock@chromium.org>
> Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
> Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
> Reviewed-by: Amin Hassani <ahassani@chromium.org>

Bug: chromium:909972
Change-Id: Iac227c7414843f6c756ce9b4386e47dfbacff59c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/autotest/+/1850712
Reviewed-by: Sean Abraham <seanabraham@chromium.org>
Reviewed-by: David Haddock <dhaddock@chromium.org>
Commit-Queue: Sean Abraham <seanabraham@chromium.org>
Tested-by: Sean Abraham <seanabraham@chromium.org>
1 file changed
tree: 6553decd0cc8196e501a7accece2dda899704541
  1. apache/
  2. bin/
  3. cli/
  4. client/
  5. contrib/
  6. database/
  7. docs/
  8. frontend/
  9. leases/
  10. logs/
  11. results/
  12. scheduler/
  13. server/
  14. site_utils/
  15. test_suites/
  16. tko/
  17. utils/
  18. venv/
  19. .gitignore
  20. .quickmerge_sentinel
  21. .style.yapf
  22. __init__.py
  23. COMMIT-QUEUE-moblab-pre-cq-only.ini
  24. COMMIT-QUEUE.ini
  25. common.py
  26. ENGPROD_OWNERS
  27. FIRMWARE_OWNERS
  28. global_config.ini
  29. INFRA_OWNERS
  30. LGPL_LICENSE
  31. LICENSE
  32. metadata.chromium
  33. moblab_config.ini
  34. PRESUBMIT.cfg
  35. README.md
  36. ssp_deploy_config.json
README.md

Autotest: Automated integration testing for Android and Chrome OS Devices

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.

Run some autotests

See the guides to test_that and test_droid:

test_droid Basic Usage

test_that Basic Usage

Write some autotests

See the best practices guide, existing tests, and comments in the code.

Autotest Best Practices

Grabbing the latest source

git clone https://chromium.googlesource.com/chromiumos/third_party/autotest

Hacking and submitting patches

See the coding style guide for guidance on submitting patches.

Coding Style

Pre-upload hook dependencies

You need to run utils/build_externals.py to set up the dependencies for pre-upload hook tests.

Setting up Lucifer

Setting up Lucifer