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

Unified Diff: client/swarming.py

Issue 2453873002: Add --output option to Swarming client and pass it through to the bot (Closed)
Patch Set: Extra help text for examples 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
« no previous file with comments | « client/example/common.py ('k') | client/tests/swarming_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/swarming.py
diff --git a/client/swarming.py b/client/swarming.py
index 1f95b635ddcfe550a4b2be4126ed627c00398a32..2753a8c604e5faea7cc0071d74726c573c3183cf 100755
--- a/client/swarming.py
+++ b/client/swarming.py
@@ -5,7 +5,7 @@
"""Client tool to trigger tasks or retrieve results from a Swarming server."""
-__version__ = '0.8.7'
+__version__ = '0.8.8'
import collections
import datetime
@@ -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')
« no previous file with comments | « client/example/common.py ('k') | client/tests/swarming_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698