| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 | 2 |
| 3 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 3 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 4 # for details. All rights reserved. Use of this source code is governed by a | 4 # for details. All rights reserved. Use of this source code is governed by a |
| 5 # BSD-style license that can be found in the LICENSE file. | 5 # BSD-style license that can be found in the LICENSE file. |
| 6 | 6 |
| 7 import datetime | 7 import datetime |
| 8 import math | 8 import math |
| 9 from matplotlib.font_manager import FontProperties | 9 from matplotlib.font_manager import FontProperties |
| 10 import matplotlib.pyplot as plt | 10 import matplotlib.pyplot as plt |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 os.chmod(path, stat.S_IWRITE) | 100 os.chmod(path, stat.S_IWRITE) |
| 101 os.unlink(path) | 101 os.unlink(path) |
| 102 # TODO(efortuna): building the sdk locally is a band-aid until all build | 102 # TODO(efortuna): building the sdk locally is a band-aid until all build |
| 103 # platform SDKs are hosted in Google storage. Pull from https://sandbox. | 103 # platform SDKs are hosted in Google storage. Pull from https://sandbox. |
| 104 # google.com/storage/?arg=dart-dump-render-tree#dart-dump-render-tree%2Fsdk | 104 # google.com/storage/?arg=dart-dump-render-tree#dart-dump-render-tree%2Fsdk |
| 105 # eventually. | 105 # eventually. |
| 106 # TODO(efortuna): Currently always building ia32 architecture because we don't | 106 # TODO(efortuna): Currently always building ia32 architecture because we don't |
| 107 # have test statistics for what's passing on x64. Eliminate arch specification | 107 # have test statistics for what's passing on x64. Eliminate arch specification |
| 108 # when we have tests running on x64, too. | 108 # when we have tests running on x64, too. |
| 109 shutil.rmtree(os.path.join(os.getcwd(), | 109 shutil.rmtree(os.path.join(os.getcwd(), |
| 110 utils.GetBuildRoot(utils.GuessOS(), 'release', 'ia32')), onerror=on_rm_error
) | 110 utils.GetBuildRoot(utils.GuessOS(), 'release', 'ia32')), |
| 111 onerror=on_rm_error) |
| 111 lines = run_cmd([os.path.join('.', 'tools', 'build.py'), '-m', 'release', | 112 lines = run_cmd([os.path.join('.', 'tools', 'build.py'), '-m', 'release', |
| 112 '--arch=ia32', 'create_sdk']) | 113 '--arch=ia32', 'create_sdk']) |
| 113 | 114 |
| 114 for line in lines: | 115 for line in lines: |
| 115 if 'BUILD FAILED' in lines: | 116 if 'BUILD FAILED' in lines: |
| 116 # Someone checked in a broken build! Just stop trying to make it work | 117 # Someone checked in a broken build! Just stop trying to make it work |
| 117 # and wait to try again. | 118 # and wait to try again. |
| 118 print 'Broken Build' | 119 print 'Broken Build' |
| 119 return 1 | 120 return 1 |
| 120 return 0 | 121 return 0 |
| 121 | 122 |
| 122 def ensure_output_directory(dir_name): | 123 def ensure_output_directory(dir_name): |
| (...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 744 if has_new_code(): | 745 if has_new_code(): |
| 745 run_test_sequence(cl, size, language, perf) | 746 run_test_sequence(cl, size, language, perf) |
| 746 else: | 747 else: |
| 747 time.sleep(SLEEP_TIME) | 748 time.sleep(SLEEP_TIME) |
| 748 else: | 749 else: |
| 749 run_test_sequence(cl, size, language, perf) | 750 run_test_sequence(cl, size, language, perf) |
| 750 | 751 |
| 751 if __name__ == '__main__': | 752 if __name__ == '__main__': |
| 752 main() | 753 main() |
| 753 | 754 |
| OLD | NEW |