| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2014 The Chromium Authors. All rights reserved. | 2 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 import json | 6 import json |
| 7 import os | 7 import os |
| 8 import sys | 8 import sys |
| 9 | 9 |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 json.dump({ | 32 json.dump({ |
| 33 'valid': True, | 33 'valid': True, |
| 34 'failures': [f['raw_name'] for f in results], | 34 'failures': [f['raw_name'] for f in results], |
| 35 }, args.output) | 35 }, args.output) |
| 36 | 36 |
| 37 return rc | 37 return rc |
| 38 | 38 |
| 39 | 39 |
| 40 def main_compile_targets(args): | 40 def main_compile_targets(args): |
| 41 json.dump(['chrome'], args.output) | 41 json.dump(['chrome', 'base_nocompile_tests'], args.output) |
| 42 | 42 |
| 43 | 43 |
| 44 if __name__ == '__main__': | 44 if __name__ == '__main__': |
| 45 funcs = { | 45 funcs = { |
| 46 'run': main_run, | 46 'run': main_run, |
| 47 'compile_targets': main_compile_targets, | 47 'compile_targets': main_compile_targets, |
| 48 } | 48 } |
| 49 sys.exit(common.run_script(sys.argv[1:], funcs)) | 49 sys.exit(common.run_script(sys.argv[1:], funcs)) |
| OLD | NEW |