OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2014 The Chromium Authors. All rights reserved. | 2 # Copyright 2014 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """A test runner for gtest application tests.""" | 6 """A test runner for gtest application tests.""" |
7 | 7 |
8 import argparse | 8 import argparse |
9 import ast | 9 import ast |
10 import logging | 10 import logging |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 run_apps=False)) as apps: | 106 run_apps=False)) as apps: |
107 launcher_args = [ | 107 launcher_args = [ |
108 '--shell-path=' + apps.socket_path, | 108 '--shell-path=' + apps.socket_path, |
109 '--app-url=' + application, | 109 '--app-url=' + application, |
110 '--app-path=' + mojo_paths.FileFromUrl(application)] | 110 '--app-path=' + mojo_paths.FileFromUrl(application)] |
111 return gtest.run_test(config, launcher_args, run_launcher=True) | 111 return gtest.run_test(config, launcher_args, run_launcher=True) |
112 | 112 |
113 | 113 |
114 if __name__ == '__main__': | 114 if __name__ == '__main__': |
115 sys.exit(main()) | 115 sys.exit(main()) |
OLD | NEW |