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

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

Issue 2870793002: swarming: fix support for raw command + isolated file (Closed)
Patch Set: . Created 3 years, 7 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: 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 e0bf025234cf52ab7bc94760bb8cf3f1cb4da547..cf94518a83f570269321ef6a6d911ac298cfb81a 100644
--- a/appengine/swarming/swarming_bot/bot_code/task_runner.py
+++ b/appengine/swarming/swarming_bot/bot_code/task_runner.py
@@ -85,8 +85,6 @@ def get_run_isolated():
def get_isolated_args(is_grpc, work_dir, task_details, isolated_result,
bot_file, run_isolated_flags):
"""Returns the command to call run_isolated. Mocked in tests."""
- assert (bool(task_details.command) !=
- bool(task_details.isolated and task_details.isolated.get('input')))
bot_dir = os.path.dirname(work_dir)
if os.path.isfile(isolated_result):
os.remove(isolated_result)

Powered by Google App Engine
This is Rietveld 408576698