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') |