| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 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 tool used to run a Chrome test executable and process the output. | 6 """A tool used to run a Chrome test executable and process the output. |
| 7 | 7 |
| 8 This script is used by the buildbot slaves. It must be run from the outer | 8 This script is used by the buildbot slaves. It must be run from the outer |
| 9 build directory, e.g. chrome-release/build/. | 9 build directory, e.g. chrome-release/build/. |
| 10 | 10 |
| (...skipping 1848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1859 elif sys.platform.startswith('darwin'): | 1859 elif sys.platform.startswith('darwin'): |
| 1860 test_platform = options.factory_properties.get( | 1860 test_platform = options.factory_properties.get( |
| 1861 'test_platform', options.test_platform) | 1861 'test_platform', options.test_platform) |
| 1862 if test_platform in ('ios-simulator',): | 1862 if test_platform in ('ios-simulator',): |
| 1863 result = _MainIOS(options, args, extra_env) | 1863 result = _MainIOS(options, args, extra_env) |
| 1864 else: | 1864 else: |
| 1865 result = _MainMac(options, args, extra_env) | 1865 result = _MainMac(options, args, extra_env) |
| 1866 elif sys.platform == 'win32': | 1866 elif sys.platform == 'win32': |
| 1867 result = _MainWin(options, args, extra_env) | 1867 result = _MainWin(options, args, extra_env) |
| 1868 elif sys.platform == 'linux2': | 1868 elif sys.platform == 'linux2': |
| 1869 if options.factory_properties.get('test_platform', '') == 'android': | 1869 if options.factory_properties.get('test_platform', |
| 1870 options.test_platform) == 'android': |
| 1870 result = _MainAndroid(options, args, extra_env) | 1871 result = _MainAndroid(options, args, extra_env) |
| 1871 else: | 1872 else: |
| 1872 result = _MainLinux(options, args, extra_env) | 1873 result = _MainLinux(options, args, extra_env) |
| 1873 else: | 1874 else: |
| 1874 sys.stderr.write('Unknown sys.platform value %s\n' % repr(sys.platform)) | 1875 sys.stderr.write('Unknown sys.platform value %s\n' % repr(sys.platform)) |
| 1875 return 1 | 1876 return 1 |
| 1876 | 1877 |
| 1877 _UploadProfilingData(options, args) | 1878 _UploadProfilingData(options, args) |
| 1878 | 1879 |
| 1879 new_temp_files = _GetTempCount() | 1880 new_temp_files = _GetTempCount() |
| (...skipping 12 matching lines...) Expand all Loading... |
| 1892 finally: | 1893 finally: |
| 1893 if did_launch_dbus: | 1894 if did_launch_dbus: |
| 1894 # It looks like the command line argument --exit-with-session | 1895 # It looks like the command line argument --exit-with-session |
| 1895 # isn't working to clean up the spawned dbus-daemon. Kill it | 1896 # isn't working to clean up the spawned dbus-daemon. Kill it |
| 1896 # manually. | 1897 # manually. |
| 1897 _ShutdownDBus() | 1898 _ShutdownDBus() |
| 1898 | 1899 |
| 1899 | 1900 |
| 1900 if '__main__' == __name__: | 1901 if '__main__' == __name__: |
| 1901 sys.exit(main()) | 1902 sys.exit(main()) |
| OLD | NEW |