| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 3 # Copyright (c) 2016, 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 os | 7 import os |
| 8 import os.path | 8 import os.path |
| 9 import shutil | 9 import shutil |
| 10 import sys | 10 import sys |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 if __name__ == '__main__': | 23 if __name__ == '__main__': |
| 24 with utils.ChangedWorkingDirectory('pkg/dev_compiler'): | 24 with utils.ChangedWorkingDirectory('pkg/dev_compiler'): |
| 25 dart_exe = utils.CheckedInSdkExecutable() | 25 dart_exe = utils.CheckedInSdkExecutable() |
| 26 | 26 |
| 27 # These two calls mirror pkg/dev_compiler/tool/test.sh. | 27 # These two calls mirror pkg/dev_compiler/tool/test.sh. |
| 28 bot.RunProcess([dart_exe, 'tool/build_pkgs.dart', 'test']) | 28 bot.RunProcess([dart_exe, 'tool/build_pkgs.dart', 'test']) |
| 29 bot.RunProcess([dart_exe, 'test/all_tests.dart']) | 29 bot.RunProcess([dart_exe, 'test/all_tests.dart']) |
| 30 | 30 |
| 31 # These mirror pkg/dev_compiler/tool/browser_test.sh. | 31 # These mirror pkg/dev_compiler/tool/browser_test.sh. |
| 32 bot.RunProcess(['npm', 'install']) | 32 bot.RunProcess(['npm', 'install']) |
| 33 bot.RunProcess(['npm', 'test']) | 33 bot.RunProcess(['npm', 'test'], {'CHROME_BIN': 'chrome'}) |
| OLD | NEW |