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

Unified Diff: build/android/run_tests.py

Issue 10784011: create temp avd when running tests on multiple emulators (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix for bulach's comments 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
« no previous file with comments | « build/android/emulator.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/run_tests.py
diff --git a/build/android/run_tests.py b/build/android/run_tests.py
index f749aaec8d92b035250e297da1ff3f83eec9c071..20a969dd79d9d8fc4cfd7aef121b8bdc8441b118 100755
--- a/build/android/run_tests.py
+++ b/build/android/run_tests.py
@@ -325,7 +325,11 @@ def _RunATestSuite(options):
if options.use_emulator:
for n in range(options.use_emulator):
t = TimeProfile('Emulator launch %d' % n)
- buildbot_emulator = emulator.Emulator(options.fast_and_loose)
+ avd_name = None
+ if n > 0:
+ # Creates a temporary AVD for the extra emulators.
+ avd_name = 'run_tests_avd_%d' % n
+ buildbot_emulator = emulator.Emulator(avd_name, options.fast_and_loose)
buildbot_emulator.Launch(kill_all_emulators=n == 0)
t.Stop()
buildbot_emulators.append(buildbot_emulator)
« no previous file with comments | « build/android/emulator.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698