Fix dart apptest flake on android.

There's a good discussion of this issue in dart-lang/test#333. In short,
tearDownAll is guaranteed to be called after all tests run. However,
apptest.dart explicitly calls close() in tearDownAll, which closes the shell.

This close races against the test framework getting around to outputting
"All tests pass!". So this patch works around it by instead looking for the
message about tearDownAll running with no previously failed tests.

BUG=Fixes #394
R=johnmccutchan@google.com, zra@google.com

Review URL: https://codereview.chromium.org/1569213004 .

Cr-Mirrored-From: https://github.com/domokit/mojo
Cr-Mirrored-Commit: 66269650afe77c016cd33903e5d02ea05d879660
1 file changed
tree: 2c6425df8158005826bd445bf1ae32d3bed4f61f
  1. android_gdb/
  2. android_stack_parser/
  3. devtoolslib/
  4. docs/
  5. .gitignore
  6. mojo_benchmark
  7. mojo_debug
  8. mojo_run
  9. mojo_test
  10. README.md
  11. remote_adb_setup
README.md

Devtools

Unopinionated tools for running, debugging, testing and benchmarking Mojo apps.

Install

git clone https://github.com/domokit/devtools.git

Contents

Devtools offers the following tools:

Additionally, remote_adb_setup script helps to configure adb on a remote machine to communicate with a device attached to a local machine, forwarding the ports used by mojo_run.

Development

The library is canonically developed in the mojo repository, https://github.com/domokit/devtools is a mirror allowing to consume it separately.