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

Side by Side Diff: scripts/slave/recipe_modules/chromium/api.py

Issue 666023004: Use src-side launcher for telemetry_unittests in chromium_trybot recipe (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | scripts/slave/recipe_modules/chromium/steps.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import os 5 import os
6 import re 6 import re
7 7
8 from slave import recipe_api 8 from slave import recipe_api
9 from slave import recipe_util 9 from slave import recipe_util
10 10
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 # Chromium workspace. 616 # Chromium workspace.
617 if self.m.platform.is_win: 617 if self.m.platform.is_win:
618 self.m.python( 618 self.m.python(
619 name='get_vs_toolchain_if_necessary', 619 name='get_vs_toolchain_if_necessary',
620 script=self.m.path['depot_tools'].join( 620 script=self.m.path['depot_tools'].join(
621 'win_toolchain', 'get_toolchain_if_necessary.py'), 621 'win_toolchain', 'get_toolchain_if_necessary.py'),
622 args=[ 622 args=[
623 '27eac9b2869ef6c89391f305a3f01285ea317867', 623 '27eac9b2869ef6c89391f305a3f01285ea317867',
624 '9d9a93134b3eabd003b85b4e7dea06c0eae150ed', 624 '9d9a93134b3eabd003b85b4e7dea06c0eae150ed',
625 ]) 625 ])
626
627 def get_common_args_for_scripts(self):
628 args = []
629
630 args.extend(['--build-config-fs', self.c.build_config_fs])
631
632 paths = {}
633 for path in ('build',):
634 paths[path] = self.m.path[path]
635 args.extend(['--paths', self.m.json.input(paths)])
636
637 properties = {}
638 for name in ('buildername', 'slavename', 'buildnumber'):
iannucci 2014/10/21 18:02:47 yikes! buildnumber is /extremely dangerous/. What
Paweł Hajdan Jr. 2014/10/22 11:18:26 e.g. runtest.py Could you explain more though why
iannucci 2014/10/22 18:58:41 It's ephemeral data. It's not tied to anything rea
639 properties[name] = self.m.properties[name]
640 args.extend(['--properties', self.m.json.input(properties)])
641
642 return args
643
644 def get_compile_targets_for_scripts(self):
645 return self.m.python(
646 name='get compile targets for scripts',
647 script=self.m.path['checkout'].join(
648 'testing', 'scripts', 'get_compile_targets.py'),
649 args=[
650 '--output', self.m.json.output(),
651 '--',
652 ] + self.get_common_args_for_scripts(),
653 step_test_data=lambda: self.m.json.test_api.output({}))
OLDNEW
« no previous file with comments | « no previous file | scripts/slave/recipe_modules/chromium/steps.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698