tast-tests: fix backup test for crostini

crostini backups are now done as full-disk backups, with a new file
extension. in addition, on local testing, terminal app was failing to
launch when using `terminal.find` for some reason, so instead we
relaunch terminal each time.

in addition, there appears to be some subtle bug somewhere causing the
backup/restore notifications to no longer remain foregrounded in the new
flow. ran out of time to isolate the fix, and instead rely on waiting
for file existence/size for backup, and a pause for restore. if either
fails, the rest of the test will also fail, so this should not allow for
false positives.

BUG=b:440416695
TEST=tast on DUT && cq

Change-Id: Ia00b29041a981b0aed017cfe1b5dda8497777aba
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/tast-tests/+/6973835
Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
Commit-Queue: maciek swiech <drmasquatch@google.com>
Tast-Review: Yichen Zhou <yichenz@chromium.org>
Tested-by: Yichen Zhou <yichenz@chromium.org>
2 files changed
tree: 98865c0e8befcb5d8e37c783d6308ca29c1b132a
  1. android/
  2. helpers/
  3. src/
  4. tools/
  5. vars/
  6. .gitignore
  7. DIR_METADATA
  8. LICENSE
  9. OWNERS
  10. OWNERS.tast
  11. PRESUBMIT.cfg
  12. PRESUBMIT.py
  13. README.md
  14. 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/go.chromium.org/tast-tests/cros/
    • local/ - Code related to local (i.e. on-device or “client”) tests.
      • bundles/ - Local test bundles.
        • cros/ - The “cros” local test bundle, containing standard ChromeOS 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 ChromeOS 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