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

Unified Diff: appengine/swarming/swarming_bot/bot_code/task_runner.py

Issue 2440353004: Return specific files, not just those in $(ISOLATED_OUTDIR) (Closed)
Patch Set: Response to PS5 reviews 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 | « no previous file | client/run_isolated.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/swarming/swarming_bot/bot_code/task_runner.py
diff --git a/appengine/swarming/swarming_bot/bot_code/task_runner.py b/appengine/swarming/swarming_bot/bot_code/task_runner.py
index bbd982bd94506beb1147be07cc6fa4fc70eacf55..8cf9e7e182123b6a3f93f7a680c531d31ef70f05 100644
--- a/appengine/swarming/swarming_bot/bot_code/task_runner.py
+++ b/appengine/swarming/swarming_bot/bot_code/task_runner.py
@@ -116,6 +116,10 @@ def get_isolated_args(
for c in task_details.caches:
cmd.extend(['--named-cache', c['name'], c['path']])
+ # Expected output files:
+ for output in task_details.outputs:
+ cmd.extend(['--output', output])
+
# CIPD options.
if task_details.cipd_input and task_details.cipd_input.get('packages'):
for pkg in task_details.cipd_input.get('packages'):
@@ -189,6 +193,7 @@ class TaskDetails(object):
self.hard_timeout = data['hard_timeout']
self.io_timeout = data['io_timeout']
self.task_id = data['task_id']
+ self.outputs = data.get('outputs', [])
@staticmethod
def load(path):
« no previous file with comments | « no previous file | client/run_isolated.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698