Chromium Code Reviews| 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 def Main(): | 11 def Main(): |
| 12 pwd = os.environ.get('PWD', '') | 12 pwd = os.environ.get('PWD', '') |
| 13 is_integration_bot = 'nacl-chrome' in pwd | 13 is_integration_bot = 'nacl-chrome' in pwd |
| 14 | 14 |
| 15 if not is_integration_bot: | 15 if not is_integration_bot: |
| 16 # On the main Chrome waterfall, we may need to control where the tests are | 16 # On the main Chrome waterfall, we may need to control where the tests are |
| 17 # run. | 17 # run. |
| 18 | 18 |
| 19 # TODO(ncbray): enable on all platforms. | 19 # TODO(ncbray): enable on all platforms. |
| 20 if sys.platform in ['win32', 'cygwin']: return | 20 if sys.platform in ['win32', 'cygwin']: return |
| 21 if sys.platform == 'darwin': return | 21 if sys.platform == 'darwin': return |
| 22 # if sys.platform in ['linux', 'linux2']: return | 22 # if sys.platform in ['linux', 'linux2']: return |
| 23 | 23 |
| 24 # Uncomment the following line if there is skew in the PPAPI interface | 24 # Uncomment the following line if there is skew in the PPAPI interface |
| 25 # and the tests are failing. Comment out once the issues are resolved. | 25 # and the tests are failing. Comment out once the issues are resolved. |
| 26 return | 26 #return |
|
noelallen_use_chromium
2011/07/08 00:50:42
Keep tests off, we can fix that as a separate chan
| |
| 27 | 27 |
| 28 script_dir = os.path.dirname(os.path.abspath(__file__)) | 28 script_dir = os.path.dirname(os.path.abspath(__file__)) |
| 29 test_dir = os.path.dirname(script_dir) | 29 test_dir = os.path.dirname(script_dir) |
| 30 chrome_dir = os.path.dirname(test_dir) | 30 chrome_dir = os.path.dirname(test_dir) |
| 31 src_dir = os.path.dirname(chrome_dir) | 31 src_dir = os.path.dirname(chrome_dir) |
| 32 nacl_integration_script = os.path.join( | 32 nacl_integration_script = os.path.join( |
| 33 src_dir, 'native_client/build/buildbot_chrome_nacl_stage.py') | 33 src_dir, 'native_client/build/buildbot_chrome_nacl_stage.py') |
| 34 cmd = [sys.executable, nacl_integration_script] + sys.argv[1:] | 34 cmd = [sys.executable, nacl_integration_script] + sys.argv[1:] |
| 35 print cmd | 35 print cmd |
| 36 subprocess.check_call(cmd) | 36 subprocess.check_call(cmd) |
| 37 | 37 |
| 38 | 38 |
| 39 if __name__ == '__main__': | 39 if __name__ == '__main__': |
| 40 Main() | 40 Main() |
| OLD | NEW |