scanapp: Preserve scanner outputs on mismatch

Scanapp tests compute a diff between the golden image and the scanner
output.  Since the files are binary, this diff is often not helpful for
debugging failures.  This CL also preserves the original scanner output
when a diff is detected.

BUG=None
TEST=tast run scanapp.Scan

Change-Id: I3fe05ae205f6610dba719a5777cc05e9e64a610c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/tast-tests/+/3611985
Tested-by: Benjamin Gordon <bmgordon@chromium.org>
Commit-Queue: Benjamin Gordon <bmgordon@chromium.org>
Reviewed-by: Paul Moy <pmoy@chromium.org>
Reviewed-by: Patrick Meiring <meiring@google.com>
1 file changed
tree: 311c550a149671f2d75cd80791339ca46e9150bf
  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