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 13 matching lines...) Expand all Loading... |
24 | 24 |
25 tests_to_disable = [] | 25 tests_to_disable = [] |
26 | 26 |
27 # In general, you should disable tests inside this conditional. This turns | 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. | 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. | 29 # This makes it easier to see when things have been fixed NaCl side. |
30 if not is_integration_bot: | 30 if not is_integration_bot: |
31 # TODO(ncbray): Reenable when this issue is resolved. | 31 # TODO(ncbray): Reenable when this issue is resolved. |
32 # http://code.google.com/p/nativeclient/issues/detail?id=2091 | 32 # http://code.google.com/p/nativeclient/issues/detail?id=2091 |
33 tests_to_disable.append('run_ppapi_bad_browser_test') | 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') |
34 | 38 |
35 if sys.platform == 'darwin': | 39 if sys.platform == 'darwin': |
36 # The following test is failing on Mac OS X 10.5. This may be | 40 # The following test is failing on Mac OS X 10.5. This may be |
37 # because of a kernel bug that we might need to work around. | 41 # because of a kernel bug that we might need to work around. |
38 # See http://code.google.com/p/nativeclient/issues/detail?id=1835 | 42 # See http://code.google.com/p/nativeclient/issues/detail?id=1835 |
39 # TODO(mseaborn): Remove this when the issue is resolved. | 43 # TODO(mseaborn): Remove this when the issue is resolved. |
40 tests_to_disable.append('run_async_messaging_test') | 44 tests_to_disable.append('run_async_messaging_test') |
41 # The following test fails on debug builds of Chromium. | 45 # The following test fails on debug builds of Chromium. |
42 # See http://code.google.com/p/nativeclient/issues/detail?id=2077 | 46 # See http://code.google.com/p/nativeclient/issues/detail?id=2077 |
43 # TODO(mseaborn): Remove this when the issue is resolved. | 47 # TODO(mseaborn): Remove this when the issue is resolved. |
44 tests_to_disable.append('run_ppapi_example_font_test') | 48 tests_to_disable.append('run_ppapi_example_font_test') |
45 | 49 |
46 script_dir = os.path.dirname(os.path.abspath(__file__)) | 50 script_dir = os.path.dirname(os.path.abspath(__file__)) |
47 test_dir = os.path.dirname(script_dir) | 51 test_dir = os.path.dirname(script_dir) |
48 chrome_dir = os.path.dirname(test_dir) | 52 chrome_dir = os.path.dirname(test_dir) |
49 src_dir = os.path.dirname(chrome_dir) | 53 src_dir = os.path.dirname(chrome_dir) |
50 nacl_integration_script = os.path.join( | 54 nacl_integration_script = os.path.join( |
51 src_dir, 'native_client/build/buildbot_chrome_nacl_stage.py') | 55 src_dir, 'native_client/build/buildbot_chrome_nacl_stage.py') |
52 cmd = [sys.executable, | 56 cmd = [sys.executable, |
53 nacl_integration_script, | 57 nacl_integration_script, |
54 '--disable_tests=%s' % ','.join(tests_to_disable)] + args | 58 '--disable_tests=%s' % ','.join(tests_to_disable)] + args |
55 sys.stdout.write('Running %s\n' % ' '.join(cmd)) | 59 sys.stdout.write('Running %s\n' % ' '.join(cmd)) |
56 sys.stdout.flush() | 60 sys.stdout.flush() |
57 return subprocess.call(cmd) | 61 return subprocess.call(cmd) |
58 | 62 |
59 | 63 |
60 if __name__ == '__main__': | 64 if __name__ == '__main__': |
61 sys.exit(Main(sys.argv[1:])) | 65 sys.exit(Main(sys.argv[1:])) |
OLD | NEW |