| 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 |
| 11 # TODO(phajdan.jr): Make buildbot refer to the update path and remove this file. |
| 12 |
| 13 |
| 11 def Main(args): | 14 def Main(args): |
| 12 pwd = os.environ.get('PWD', '') | |
| 13 is_integration_bot = 'nacl-chrome' in pwd | |
| 14 | |
| 15 # On the main Chrome waterfall, we may need to control where the tests are | |
| 16 # run. | |
| 17 # If there is serious skew in the PPAPI interface that causes all of | |
| 18 # the NaCl integration tests to fail, you can uncomment the | |
| 19 # following block. (Make sure you comment it out when the issues | |
| 20 # are resolved.) *However*, it is much preferred to add tests to | |
| 21 # the 'tests_to_disable' list below. | |
| 22 #if not is_integration_bot: | |
| 23 # return | |
| 24 | |
| 25 tests_to_disable = [] | |
| 26 | |
| 27 # In general, you should disable tests inside this conditional. This turns | |
| 28 # them off on the main Chrome waterfall, but not on NaCl's integration bots. | |
| 29 # This makes it easier to see when things have been fixed NaCl side. | |
| 30 if not is_integration_bot: | |
| 31 # TODO(ncbray): Reenable when this issue is resolved. | |
| 32 # http://code.google.com/p/nativeclient/issues/detail?id=2091 | |
| 33 tests_to_disable.append('run_ppapi_bad_browser_test') | |
| 34 # This thread safety stress test is flaky on at least Windows. | |
| 35 # See http://code.google.com/p/nativeclient/issues/detail?id=2124 | |
| 36 # TODO(mseaborn): Reenable when this issue is resolved. | |
| 37 tests_to_disable.append('run_ppapi_ppb_var_browser_test') | |
| 38 # The behavior of the URLRequest changed slightly and this test needs to be | |
| 39 # updated. http://code.google.com/p/chromium/issues/detail?id=94352 | |
| 40 tests_to_disable.append('run_ppapi_ppb_url_request_info_browser_test') | |
| 41 # This test failed and caused the build's gatekeep to close the tree. | |
| 42 # http://code.google.com/p/chromium/issues/detail?id=96434 | |
| 43 tests_to_disable.append('run_ppapi_example_post_message_test') | |
| 44 | |
| 45 # TODO(ncbray) why did these tests flake? | |
| 46 # http://code.google.com/p/nativeclient/issues/detail?id=2230 | |
| 47 tests_to_disable.extend([ | |
| 48 'run_pm_manifest_file_chrome_browser_test', | |
| 49 'run_srpc_basic_chrome_browser_test', | |
| 50 'run_srpc_hw_data_chrome_browser_test', | |
| 51 'run_srpc_hw_chrome_browser_test', | |
| 52 'run_srpc_manifest_file_chrome_browser_test', | |
| 53 'run_srpc_nameservice_chrome_browser_test', | |
| 54 'run_srpc_nrd_xfer_chrome_browser_test', | |
| 55 'run_no_fault_pm_nameservice_chrome_browser_test', | |
| 56 'run_fault_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', | |
| 59 'run_inbrowser_untrusted_crash_test', | |
| 60 ]) | |
| 61 if sys.platform.startswith('linux'): | |
| 62 tests_to_disable.append('run_inbrowser_crash_in_syscall_test') | |
| 63 | |
| 64 if sys.platform == 'darwin': | |
| 65 # The following test is failing on Mac OS X 10.5. This may be | |
| 66 # because of a kernel bug that we might need to work around. | |
| 67 # See http://code.google.com/p/nativeclient/issues/detail?id=1835 | |
| 68 # TODO(mseaborn): Remove this when the issue is resolved. | |
| 69 tests_to_disable.append('run_async_messaging_test') | |
| 70 # The following test fails on debug builds of Chromium. | |
| 71 # See http://code.google.com/p/nativeclient/issues/detail?id=2077 | |
| 72 # TODO(mseaborn): Remove this when the issue is resolved. | |
| 73 tests_to_disable.append('run_ppapi_example_font_test') | |
| 74 | |
| 75 script_dir = os.path.dirname(os.path.abspath(__file__)) | 15 script_dir = os.path.dirname(os.path.abspath(__file__)) |
| 76 test_dir = os.path.dirname(script_dir) | 16 test_dir = os.path.dirname(script_dir) |
| 77 chrome_dir = os.path.dirname(test_dir) | 17 chrome_dir = os.path.dirname(test_dir) |
| 78 src_dir = os.path.dirname(chrome_dir) | 18 |
| 79 nacl_integration_script = os.path.join( | 19 nacl_integration_script = os.path.join( |
| 80 src_dir, 'native_client/build/buildbot_chrome_nacl_stage.py') | 20 chrome_dir, 'nacl', 'buildbot_nacl_integration.py') |
| 81 cmd = [sys.executable, | 21 cmd = [sys.executable, nacl_integration_script] |
| 82 nacl_integration_script, | |
| 83 '--disable_tests=%s' % ','.join(tests_to_disable)] + args | |
| 84 sys.stdout.write('Running %s\n' % ' '.join(cmd)) | 22 sys.stdout.write('Running %s\n' % ' '.join(cmd)) |
| 85 sys.stdout.flush() | 23 sys.stdout.flush() |
| 86 return subprocess.call(cmd) | 24 return subprocess.call(cmd) |
| 87 | 25 |
| 88 | 26 |
| 89 if __name__ == '__main__': | 27 if __name__ == '__main__': |
| 90 sys.exit(Main(sys.argv[1:])) | 28 sys.exit(Main(sys.argv[1:])) |
| OLD | NEW |