| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2011 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 import os | 6 import os |
| 7 import subprocess | 7 import subprocess |
| 8 import sys | 8 import sys |
| 9 | 9 |
| 10 | 10 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 'run_srpc_hw_chrome_browser_test', | 51 'run_srpc_hw_chrome_browser_test', |
| 52 'run_srpc_manifest_file_chrome_browser_test', | 52 'run_srpc_manifest_file_chrome_browser_test', |
| 53 'run_srpc_nameservice_chrome_browser_test', | 53 'run_srpc_nameservice_chrome_browser_test', |
| 54 'run_srpc_nrd_xfer_chrome_browser_test', | 54 'run_srpc_nrd_xfer_chrome_browser_test', |
| 55 'run_no_fault_pm_nameservice_chrome_browser_test', | 55 'run_no_fault_pm_nameservice_chrome_browser_test', |
| 56 'run_fault_pm_nameservice_chrome_browser_test', | 56 'run_fault_pm_nameservice_chrome_browser_test', |
| 57 'run_fault_pq_os_pm_nameservice_chrome_browser_test', | 57 'run_fault_pq_os_pm_nameservice_chrome_browser_test', |
| 58 'run_fault_pq_dep_pm_nameservice_chrome_browser_test', | 58 'run_fault_pq_dep_pm_nameservice_chrome_browser_test', |
| 59 ]) | 59 ]) |
| 60 | 60 |
| 61 # TODO(mcgrathr): Reenable when resolved. | |
| 62 # Was seen to fail repeatedly on Windows. | |
| 63 # http://code.google.com/p/nativeclient/issues/detail?id=2173 | |
| 64 tests_to_disable.append('run_inbrowser_crash_in_syscall_test') | |
| 65 | |
| 66 if sys.platform in ('win32', 'cygwin'): | 61 if sys.platform in ('win32', 'cygwin'): |
| 67 tests_to_disable.append('run_ppapi_ppp_input_event_browser_test') | 62 tests_to_disable.append('run_ppapi_ppp_input_event_browser_test') |
| 68 | 63 |
| 69 script_dir = os.path.dirname(os.path.abspath(__file__)) | 64 script_dir = os.path.dirname(os.path.abspath(__file__)) |
| 70 test_dir = os.path.dirname(script_dir) | 65 test_dir = os.path.dirname(script_dir) |
| 71 chrome_dir = os.path.dirname(test_dir) | 66 chrome_dir = os.path.dirname(test_dir) |
| 72 src_dir = os.path.dirname(chrome_dir) | 67 src_dir = os.path.dirname(chrome_dir) |
| 73 nacl_integration_script = os.path.join( | 68 nacl_integration_script = os.path.join( |
| 74 src_dir, 'native_client/build/buildbot_chrome_nacl_stage.py') | 69 src_dir, 'native_client/build/buildbot_chrome_nacl_stage.py') |
| 75 cmd = [sys.executable, | 70 cmd = [sys.executable, |
| 76 nacl_integration_script, | 71 nacl_integration_script, |
| 77 '--disable_tests=%s' % ','.join(tests_to_disable)] + args | 72 '--disable_tests=%s' % ','.join(tests_to_disable)] + args |
| 78 sys.stdout.write('Running %s\n' % ' '.join(cmd)) | 73 sys.stdout.write('Running %s\n' % ' '.join(cmd)) |
| 79 sys.stdout.flush() | 74 sys.stdout.flush() |
| 80 return subprocess.call(cmd) | 75 return subprocess.call(cmd) |
| 81 | 76 |
| 82 | 77 |
| 83 if __name__ == '__main__': | 78 if __name__ == '__main__': |
| 84 sys.exit(Main(sys.argv[1:])) | 79 sys.exit(Main(sys.argv[1:])) |
| OLD | NEW |