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

Unified Diff: tools/bots/compiler.py

Issue 11442051: Make sure the '--append_flaky_log' flag is set on all test.py calls except for the first one (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/bots/compiler.py
diff --git a/tools/bots/compiler.py b/tools/bots/compiler.py
index e378b4d66f5281110c394f53c88c50fc732b44d4..9e88f2c140303d03f0b9cbcf5de7e0d5e3560195 100644
--- a/tools/bots/compiler.py
+++ b/tools/bots/compiler.py
@@ -99,7 +99,7 @@ def TestStepName(name, flags):
flags = [x for x in flags if not '=' in x]
return ('%s tests %s' % (name, ' '.join(flags))).strip()
-
+IsFirstTestStepCall = True
def TestStep(name, mode, system, compiler, runtime, targets, flags):
step_name = TestStepName(name, flags)
with bot.BuildStep(step_name, swallow_error=True):
@@ -130,6 +130,12 @@ def TestStep(name, mode, system, compiler, runtime, targets, flags):
else:
cmd.extend(['--progress=buildbot', '-v'])
+ global IsFirstTestStepCall
+ if IsFirstTestStepCall:
+ IsFirstTestStepCall = False
+ else:
+ cmd.append('--append_flaky_log')
+
if flags:
cmd.extend(flags)
cmd.extend(targets)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698