tree: 9a7e6138509fa7f6850973b7be9a42b96c0e3b72 [path history] [tgz]
  1. .gitignore
  2. JSON_TEST_LIST.md
  3. README.md
  4. STATION_BASED.md
  5. __init__.py
  6. active_test_list.schema.json
  7. base.test_list.json
  8. checker.py
  9. checker_unittest.py
  10. disable_factory_server.test_list.json
  11. generic_common.test_list.json
  12. generic_fat.test_list.json
  13. generic_fft.test_list.json
  14. generic_grt.test_list.json
  15. generic_main.test_list.json
  16. generic_rf_station.test_list.json
  17. generic_rma.test_list.json
  18. generic_rrt.test_list.json
  19. generic_run_in.test_list.json
  20. generic_smt.test_list.json
  21. generic_tast.test_list.json
  22. generic_unprovisioned.test_list.json
  23. manager.py
  24. manager_unittest.py
  25. manager_unittest/
  26. station_based.test_list.json
  27. test_list.py
  28. test_list.schema.json
  29. test_list_common.py
  30. test_list_unittest.py
  31. test_lists_format_unittest.py
  32. test_object.py
  33. test_object_unittest.py
py/test/test_lists/README.md

ChromeOS Factory Test Lists

This package contains factory test lists. See: http://goto/cros-factory-test-list or JSON_TEST_LIST.md

TEST LISTS

On startup, test list manager loads all *.test_list.json in this directory. If the JSON file defines tests, the test list ID will be exported as a valid test list. Use command factory test-list --list to find all valid test lists, and factory test-list <test-list-id> to activate the test list.

THE ACTIVE TEST LIST

Normally, the ID of the active test list is stored in /usr/local/factory/py/config/active_test_list.json just like other build time configurations. Goofy first tries to read the ID of the active test list from that config file. And the command factory test-list <test-list-id> stores the specified test list ID to that file.

If no active test list configuration is present, then there are two ways to determine the default test list:

  1. ID - main_${model} would be checked first where ${model} is came from output of command - mosys platform model.
  2. the test list with ID - main or generic_main is used.

Override the Active Test List

setup/cros_docker.sh goofy try allows developers to run the factory software from source locally. In this usecase, we suggest the developers to manually save the active test list ID to /var/factory/config/active_test_list.json in the docker because having py/config/active_test_list.json on the developer's computer makes it easy to build a toolkit with unexpected default active test list.

Please note that factory test-list <test-list-id> command will become not working when /var/factory/config/active_test_list.json is set. The reason is that Goofy will always try to get the ID from the configuration under /var first but factory test-list <test-list-id> command will still save the ID to /usr/local/factory/py/config/active_test_list.json.