Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(607)

Issue 1569213004: Fix dart apptest flake on android. (Closed)

Created:
4 years, 11 months ago by tonyg
Modified:
4 years, 11 months ago
Reviewers:
zra, Cutch
CC:
mojo-reviews_chromium.org, gregsimon, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org, alhaad
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

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 Committed: https://chromium.googlesource.com/external/mojo/+/66269650afe77c016cd33903e5d02ea05d879660

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -1 line) Patch
M mojo/devtools/common/devtoolslib/apptest_dart.py View 1 chunk +9 lines, -1 line 0 comments Download

Messages

Total messages: 8 (3 generated)
tonyg
4 years, 11 months ago (2016-01-09 00:10:08 UTC) #3
zra
This lgtm as a temporary fix. I wonder if fixing https://github.com/domokit/mojo/issues/487 would be the real ...
4 years, 11 months ago (2016-01-09 03:02:24 UTC) #4
Cutch
Thanks! LGTM
4 years, 11 months ago (2016-01-11 15:10:15 UTC) #5
tonyg
Committed patchset #1 (id:1) manually as 66269650afe77c016cd33903e5d02ea05d879660 (presubmit successful).
4 years, 11 months ago (2016-01-11 17:18:25 UTC) #7
tonyg
4 years, 11 months ago (2016-01-11 17:23:56 UTC) #8
Message was sent while issue was closed.
On 2016/01/09 03:02:24, zra wrote:
> This lgtm as a temporary fix.
> 
> I wonder if fixing https://github.com/domokit/mojo/issues/487 would be the
real
> fix for this as well. I have some thoughts about a possible solution on that
> bug, but I haven't had time to try anything out, yet.

That's very possible.

> Would this fix let us move mojo:dart_apptests outside of the != android guard
> here?

It should. That's my intent in making this change (but for a repo that depends
on mojo). I'm not planning to try it in this repo.

Powered by Google App Engine
This is Rietveld 408576698