Chromium Code Reviews| 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 out.write(' <li><a href=data' + \ | 228 out.write(' <li><a href=data' + \ |
| 229 '''/%(data)s/%(os)s/%(file)s>%(file)s</a></li>\n''' % \ | 229 '''/%(data)s/%(os)s/%(file)s>%(file)s</a></li>\n''' % \ |
| 230 {'data': data, 'os': utils.GuessOS(), 'file': f}) | 230 {'data': data, 'os': utils.GuessOS(), 'file': f}) |
| 231 out.write(' </ul>\n </body>\n</html>') | 231 out.write(' </ul>\n </body>\n</html>') |
| 232 out.close() | 232 out.close() |
| 233 | 233 |
| 234 shutil.rmtree(os.path.join('appengine', 'static', 'graphs'), | 234 shutil.rmtree(os.path.join('appengine', 'static', 'graphs'), |
| 235 ignore_errors=True) | 235 ignore_errors=True) |
| 236 shutil.copytree('graphs', os.path.join('appengine', 'static', 'graphs')) | 236 shutil.copytree('graphs', os.path.join('appengine', 'static', 'graphs')) |
| 237 shutil.copyfile('index.html', os.path.join('appengine', 'static', | 237 shutil.copyfile('index.html', os.path.join('appengine', 'static', |
| 238 'index.html')) | 238 'index.html')) |
|
Emily Fortuna
2012/04/04 23:13:51
Do you also want to edit index.html so that there
vsm
2012/04/05 17:01:52
Done.
| |
| 239 shutil.copyfile('dromaeo.html', os.path.join('appengine', 'static', | |
| 240 'dromaeo.html')) | |
| 239 shutil.copyfile('data.html', os.path.join('appengine', 'static', | 241 shutil.copyfile('data.html', os.path.join('appengine', 'static', |
| 240 'data.html')) | 242 'data.html')) |
| 241 p = subprocess.Popen([os.path.join('..', '..', '..', 'third_party', | 243 p = subprocess.Popen([os.path.join('..', '..', '..', 'third_party', |
| 242 'appengine-python', 'appcfg.py'), 'update', | 244 'appengine-python', 'appcfg.py'), 'update', |
| 243 'appengine/'], shell=HAS_SHELL, stdin=subprocess.PIPE) | 245 'appengine/'], shell=HAS_SHELL, stdin=subprocess.PIPE) |
| 244 p.stdin.write(username + '\n') | 246 p.stdin.write(username + '\n') |
| 245 p.stdin.write(password + '\n') | 247 p.stdin.write(password + '\n') |
| 246 p.communicate() | 248 p.communicate() |
| 247 | 249 |
| 248 | 250 |
| (...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 927 run_test_sequence(cl, size, perf, dromaeo, dsize, no_build, graph_only, | 929 run_test_sequence(cl, size, perf, dromaeo, dsize, no_build, graph_only, |
| 928 username, password) | 930 username, password) |
| 929 else: | 931 else: |
| 930 time.sleep(SLEEP_TIME) | 932 time.sleep(SLEEP_TIME) |
| 931 else: | 933 else: |
| 932 run_test_sequence(cl, size, perf, dromaeo, dsize, no_build, graph_only, | 934 run_test_sequence(cl, size, perf, dromaeo, dsize, no_build, graph_only, |
| 933 username, password) | 935 username, password) |
| 934 | 936 |
| 935 if __name__ == '__main__': | 937 if __name__ == '__main__': |
| 936 main() | 938 main() |
| OLD | NEW |