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

Unified Diff: trychange.py

Issue 9634011: Fix support for --bot bot1,bot2 -t foo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 8 years, 9 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 | « tests/trychange_unittest.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trychange.py
diff --git a/trychange.py b/trychange.py
index 9df39f0b04de08d079c7a5201391f8f457264106..748dbfa6cd45f90c68ab69fcc255f238645fe3e3 100755
--- a/trychange.py
+++ b/trychange.py
@@ -315,13 +315,14 @@ def _ParseSendChangeOptions(options):
filters = ','.join(options.testfilter)
if filters:
- for bot in options.bot:
- if ':' in bot:
- raise ValueError(
- 'Can\'t use both --testfilter and --bot builder:test formats '
- 'at the same time')
- else:
- values.append(('bot', '%s:%s' % (bot, filters)))
+ for botlist in options.bot:
+ for bot in botlist.split(','):
+ if ':' in bot:
+ raise ValueError(
+ 'Can\'t use both --testfilter and --bot builder:test formats '
+ 'at the same time')
+ else:
+ values.append(('bot', '%s:%s' % (bot, filters)))
else:
for bot in options.bot:
values.append(('bot', bot))
« no previous file with comments | « tests/trychange_unittest.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698