tast-tests: Improve ephemeral crash collector test flakiness

While the post OOBE, no consent subtest was written as a login test
to allow consent revocation, it does not actually reflect the real
usage of the ephemeral collector, which is run on staritng system
service before the first boot.

Post login, the oobe_completed file is created on a low priority task
which adds flakiness since the file may not exist immediately after
login. Since the ephemeral collector is run before log in, manually
force create the file post-login to emulate the conditions of it's
usage.

BUG=chromium:1122244
TEST=tast run platform.EphemeralCrashCollector.*

Change-Id: I10fbf6a5370b0e5fb00c3a46ab3dde9891582934
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/tast-tests/+/2392147
Tested-by: Sarthak Kukreti <sarthakkukreti@chromium.org>
Reviewed-by: Katherine Threlkeld <kathrelkeld@chromium.org>
Reviewed-by: Miriam Zimmerman <mutexlox@chromium.org>
Commit-Queue: Sarthak Kukreti <sarthakkukreti@chromium.org>
1 file changed
tree: fe94e05967844d322a9471d5b73767a4643b0243
  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
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