| # Copyright 2015 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| with common.temporary_file() as tempfile_path: |
| rc = common.run_command([ |
| os.path.join(common.SRC_DIR, 'third_party', 'WebKit', |
| 'Tools', 'Scripts', 'test-webkitpy'), |
| '--write-full-results-to', tempfile_path, |
| with open(tempfile_path) as f: |
| parsed_results = common.parse_common_test_results(results) |
| failures = parsed_results['unexpected_failures'] |
| 'valid': bool(rc <= common.MAX_FAILURES_EXIT_STATUS and |
| ((rc == 0) or failures)), |
| 'failures': failures.keys(), |
| def main_compile_targets(args): |
| json.dump([], args.output) |
| if __name__ == '__main__': |
| 'compile_targets': main_compile_targets, |
| sys.exit(common.run_script(sys.argv[1:], funcs)) |