platform.CrosRuntimeProbe: skip tests when a category is waived

If we waive some categories, there will not exist such labels in the
host info labels.  Therefore, it should be passed in this case. This CL
makes tast tests skip the probe action and pass tests directly.

For tests with multiple categories, i.e. input_device and network, the
probe action will be executed as before.

BUG=b:192028575,b:189719027
TEST=run all tests on FLEEX

Change-Id: Id70e8b3a9f8ad41342bd4f7ef5a1dffc02914eb0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/tast-tests/+/2991865
Reviewed-by: Shuhei Takahashi <nya@chromium.org>
Reviewed-by: Clark Chung <ckclark@chromium.org>
Tested-by: Yun-Kai Lin <kevinptt@chromium.org>
Commit-Queue: Yun-Kai Lin <kevinptt@chromium.org>
(cherry picked from commit f12467696074152577a70ae65f0a05b60979326d)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/tast-tests/+/3026096
Reviewed-by: Yun-Kai Lin <kevinptt@chromium.org>
Auto-Submit: Yun-Kai Lin <kevinptt@chromium.org>
Commit-Queue: Clark Chung <ckclark@chromium.org>
5 files changed
tree: fca9489abab408fa5b280f8f6a2c2ac96442e299
  1. android/
  2. helpers/
  3. src/
  4. tools/
  5. vars/
  6. .gitignore
  7. LICENSE
  8. OWNERS
  9. PRESUBMIT.cfg
  10. PRESUBMIT.py
  11. README.md
  12. unblocked_terms.txt
README.md

Tast (tests)

This repository contains integration tests that are run by Tast.

Directory structure

  • helpers/ - Source code for binaries executed by tests.
    • local/ - Helpers for local tests that are compiled and installed to /usr/local/libexec/tast/helpers/local/cros by the tast-local-helpers-cros package.
  • src/chromiumos/tast/
    • local/ - Code related to local (i.e. on-device or “client”) tests.
      • bundles/ - Local test bundles.
        • cros/ - The “cros” local test bundle, containing standard Chrome OS tests. Tests are packaged by category.
      • ... - Packages used only by local tests.
    • remote/ - Code related to remote (i.e. off-device or “server”) tests.
      • bundles/ - Remote test bundles.
        • cros/ - The “cros” remote test bundle, containing standard Chrome OS tests. Tests are packaged by category.
      • ... - Packages used only by remote tests.

Shared code, the main tast executable, the local_test_runner and remote_test_runner executables responsible for running bundles, and documentation are located in the tast repository.

GoDoc