OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 16 matching lines...) Expand all Loading... |
27 json.dump({ | 27 json.dump({ |
28 'valid': bool(rc <= common.MAX_FAILURES_EXIT_STATUS and | 28 'valid': bool(rc <= common.MAX_FAILURES_EXIT_STATUS and |
29 ((rc == 0) or failures)), | 29 ((rc == 0) or failures)), |
30 'failures': failures.keys(), | 30 'failures': failures.keys(), |
31 }, args.output) | 31 }, args.output) |
32 | 32 |
33 return rc | 33 return rc |
34 | 34 |
35 | 35 |
36 def main_compile_targets(args): | 36 def main_compile_targets(args): |
37 json.dump(['mandoline:tests'], args.output) | 37 json.dump(['mandoline:tests', 'mash/wm:tests'], args.output) |
38 | 38 |
39 | 39 |
40 if __name__ == '__main__': | 40 if __name__ == '__main__': |
41 funcs = { | 41 funcs = { |
42 'run': main_run, | 42 'run': main_run, |
43 'compile_targets': main_compile_targets, | 43 'compile_targets': main_compile_targets, |
44 } | 44 } |
45 sys.exit(common.run_script(sys.argv[1:], funcs)) | 45 sys.exit(common.run_script(sys.argv[1:], funcs)) |
OLD | NEW |