summaryrefslogtreecommitdiffstats
path: root/tools/parallel_launcher
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-24 08:47:38 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-24 08:47:38 +0000
commite57afb39d5c9c8a79bf1eecab4ef971fc541af9f (patch)
treec60367cb4579149d499b4e061213befd504b914b /tools/parallel_launcher
parenteb09ecdb0825f0ef5d96b7cb65abffcbf0a7acd6 (diff)
downloadchromium_src-e57afb39d5c9c8a79bf1eecab4ef971fc541af9f.zip
chromium_src-e57afb39d5c9c8a79bf1eecab4ef971fc541af9f.tar.gz
chromium_src-e57afb39d5c9c8a79bf1eecab4ef971fc541af9f.tar.bz2
GTTF: Make it possible to run ui_tests in parallel by making each browser instance
log to its own log file. Otherwise each launched browser would overwrite the shared log. The test infrastructure relies on the log file to detect assertion failures. BUG=54098 TEST=none Review URL: http://codereview.chromium.org/3405025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60441 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/parallel_launcher')
-rwxr-xr-xtools/parallel_launcher/parallel_launcher.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/parallel_launcher/parallel_launcher.py b/tools/parallel_launcher/parallel_launcher.py
index 57358f5..469d444 100755
--- a/tools/parallel_launcher/parallel_launcher.py
+++ b/tools/parallel_launcher/parallel_launcher.py
@@ -69,6 +69,9 @@ class TestLauncher(object):
def launch(self):
env = os.environ.copy()
+
+ env['CHROME_LOG_FILE'] = 'chrome_log_%d' % self._shard
+
if 'GTEST_TOTAL_SHARDS' in env:
# Handle the requested sharding transparently.
outer_shards = int(env['GTEST_TOTAL_SHARDS'])