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

Unified Diff: client/swarming.py

Issue 2453873002: Add --output option to Swarming client and pass it through to the bot (Closed)
Patch Set: Fix help text for --output Created 4 years, 2 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: client/swarming.py
diff --git a/client/swarming.py b/client/swarming.py
index 1f95b635ddcfe550a4b2be4126ed627c00398a32..16d12d8ec6871fe2280d6020cc8641ad7b7b4ff8 100755
--- a/client/swarming.py
+++ b/client/swarming.py
@@ -175,6 +175,7 @@ TaskProperties = collections.namedtuple(
'idempotent',
'inputs_ref',
'io_timeout_secs',
+ 'outputs',
])
@@ -960,6 +961,11 @@ def add_trigger_options(parser):
'string can be specified currently (to run the task under bot\'s '
'account). Don\'t use task service accounts if not given '
'(default).')
+ parser.task_group.add_option(
+ '-o', '--output', action='append', default=[],
+ help='A list of files to return in addition to those written to'
+ '$(ISOLATED_OUTDIR). An error will occur if a file specified by'
+ 'this option is also written directly to $(ISOLATED_OUTDIR).')
parser.add_option_group(parser.task_group)
@@ -1026,7 +1032,8 @@ def process_trigger_options(parser, options, args):
grace_period_secs=30,
idempotent=options.idempotent,
inputs_ref=inputs_ref,
- io_timeout_secs=options.io_timeout)
+ io_timeout_secs=options.io_timeout,
+ outputs=options.output)
if not all(len(t.split(':', 1)) == 2 for t in options.tags):
parser.error('--tags must be in the format key:value')

Powered by Google App Engine
This is Rietveld 408576698