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

Side by Side Diff: testing/scripts/gyp_flag_compare.py

Issue 1145513005: Add script tests for `gn check`, `gyp_flag_compare` to GN bot configs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clean up TODOs Created 5 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 unified diff | Download patch
« no previous file with comments | « testing/scripts/gn_check.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 # Copyright 2015 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 """Wrap //tools/gn/bin/gyp_flag_compare.py for the bots.
7
8 This script wraps the GN test script in the facade needed for the
9 'ScriptTest' step class of the chromium recipe_module
10 (see scripts/slave/recipe_modules/chromium/steps.py in the build repo.
11
12 The script takes N arguments, for the N targets to compare flags for.
13 """
14
15 import json
16 import os
17 import sys
18
19
20 import common
21
22
23 def main_run(args):
24 rc = common.run_command([sys.executable,
25 os.path.join(common.SRC_DIR,
26 'tools', 'gn', 'bin',
27 'gyp_flag_compare.py')] + args.args)
28
29 # TODO(dpranke): Figure out how to get a list of failures out of
30 # gyp_flag_compare?
31 json.dump({
32 'valid': True,
33 'failures': ['compare_failed'] if rc else [],
34 }, args.output)
35
36 return rc
37
38
39 def main_compile_targets(args):
40 # TODO(dpranke): Figure out how to get args.args plumbed through to here.
41 json.dump([], args.output)
42
43
44 if __name__ == '__main__':
45 funcs = {
46 'run': main_run,
47 'compile_targets': main_compile_targets,
48 }
49 sys.exit(common.run_script(sys.argv[1:], funcs))
OLDNEW
« no previous file with comments | « testing/scripts/gn_check.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698