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

Unified Diff: scripts/master/factory/annotator_factory.py

Issue 1883503003: annotator_commands: allow running different annotated scripts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 4 years, 8 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 | « scripts/master/factory/annotator_commands.py ('k') | scripts/master/factory/commands.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/master/factory/annotator_factory.py
diff --git a/scripts/master/factory/annotator_factory.py b/scripts/master/factory/annotator_factory.py
index 9ad163236cce8e9ed84e81675efde4e1b50fddcb..c646457cce20e60c45c93bab8e2113d0098ef40c 100644
--- a/scripts/master/factory/annotator_factory.py
+++ b/scripts/master/factory/annotator_factory.py
@@ -54,7 +54,12 @@ class AnnotatorFactory(object):
factory.properties.update(self._factory_properties, 'AnnotatorFactory')
cmd_obj = annotator_commands.AnnotatorCommands(
factory, active_master=self.active_master)
- cmd_obj.AddAnnotatedScript(timeout=timeout, max_time=max_time)
+
+ runner = cmd_obj.PathJoin(cmd_obj.script_dir, 'annotated_run.py')
+ cmd = [cmd_obj.python, '-u', runner, '--use-factory-properties-from-disk']
+ cmd = cmd_obj.AddB64GzBuildProperties(cmd)
+
+ cmd_obj.AddAnnotatedScript(cmd, timeout=timeout, max_time=max_time)
for t in triggers or []:
factory.addStep(commands.CreateTriggerStep(
« no previous file with comments | « scripts/master/factory/annotator_commands.py ('k') | scripts/master/factory/commands.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698