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

Unified Diff: build/android/run_tests.py

Issue 10692132: fix test broken issue when using --use-emulator (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: build/android/run_tests.py
diff --git a/build/android/run_tests.py b/build/android/run_tests.py
index dfa66acad16661b56e10816905df0e48b9f911b7..d6a10052b30f36c9e3cc1971088c665aca5bd80f 100755
--- a/build/android/run_tests.py
+++ b/build/android/run_tests.py
@@ -320,8 +320,13 @@ def _RunATestSuite(options):
buildbot_emulators.append(buildbot_emulator)
attached_devices.append(buildbot_emulator.device)
# Wait for all emulators to become available.
- map(lambda buildbot_emulator:buildbot_emulator.ConfirmLaunch(),
+ map(lambda buildbot_emulator:buildbot_emulator.ConfirmLaunch(True),
buildbot_emulators)
+ # Emulator booting completely is not enough for the test to start.
+ # Wait for another 60 seconds so the emulator can settle down.
+ # Otherwise, the connection to the device may lost during the test,
+ # which will break the test.
+ time.sleep(60)
John Grabowski 2012/07/10 06:14:09 Sadness. Offhand I don't remember what ConfirmLaun
Wei James(wistoch) 2012/07/10 14:26:48 ConfirmLaunch() is to make sure the emulator launc
elif options.test_device:
attached_devices = [options.test_device]
else:
« build/android/pylib/single_test_runner.py ('K') | « build/android/pylib/single_test_runner.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698