| 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 getpass | 8 import getpass |
| 9 import math | 9 import math |
| 10 from matplotlib.font_manager import FontProperties | 10 from matplotlib.font_manager import FontProperties |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 '''/%(data)s/%(os)s/%(file)s>%(file)s</a></li>\n''' % \ | 228 '''/%(data)s/%(os)s/%(file)s>%(file)s</a></li>\n''' % \ |
| 229 {'data': data, 'os': utils.GuessOS(), 'file': f}) | 229 {'data': data, 'os': utils.GuessOS(), 'file': f}) |
| 230 out.write(' </ul>\n </body>\n</html>') | 230 out.write(' </ul>\n </body>\n</html>') |
| 231 out.close() | 231 out.close() |
| 232 | 232 |
| 233 shutil.rmtree(os.path.join('appengine', 'static', 'graphs'), | 233 shutil.rmtree(os.path.join('appengine', 'static', 'graphs'), |
| 234 ignore_errors=True) | 234 ignore_errors=True) |
| 235 shutil.copytree('graphs', os.path.join('appengine', 'static', 'graphs')) | 235 shutil.copytree('graphs', os.path.join('appengine', 'static', 'graphs')) |
| 236 shutil.copyfile('index.html', os.path.join('appengine', 'static', | 236 shutil.copyfile('index.html', os.path.join('appengine', 'static', |
| 237 'index.html')) | 237 'index.html')) |
| 238 shutil.copyfile('dromaeo.html', os.path.join('appengine', 'static', |
| 239 'dromaeo.html')) |
| 238 shutil.copyfile('data.html', os.path.join('appengine', 'static', | 240 shutil.copyfile('data.html', os.path.join('appengine', 'static', |
| 239 'data.html')) | 241 'data.html')) |
| 240 p = subprocess.Popen([os.path.join('..', '..', '..', 'third_party', | 242 p = subprocess.Popen([os.path.join('..', '..', '..', 'third_party', |
| 241 'appengine-python', 'appcfg.py'), 'update', | 243 'appengine-python', 'appcfg.py'), 'update', |
| 242 'appengine/'], shell=HAS_SHELL, stdin=subprocess.PIPE) | 244 'appengine/'], shell=HAS_SHELL, stdin=subprocess.PIPE) |
| 243 p.stdin.write(username + '\n') | 245 p.stdin.write(username + '\n') |
| 244 p.stdin.write(password + '\n') | 246 p.stdin.write(password + '\n') |
| 245 p.communicate() | 247 p.communicate() |
| 246 | 248 |
| 247 | 249 |
| (...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 929 run_test_sequence(suites, no_build, graph_only, | 931 run_test_sequence(suites, no_build, graph_only, |
| 930 username, password) | 932 username, password) |
| 931 else: | 933 else: |
| 932 time.sleep(SLEEP_TIME) | 934 time.sleep(SLEEP_TIME) |
| 933 else: | 935 else: |
| 934 run_test_sequence(suites, no_build, graph_only, | 936 run_test_sequence(suites, no_build, graph_only, |
| 935 username, password) | 937 username, password) |
| 936 | 938 |
| 937 if __name__ == '__main__': | 939 if __name__ == '__main__': |
| 938 main() | 940 main() |
| OLD | NEW |