| OLD | NEW | 
|---|
| 1 #!/usr/bin/python | 1 #!/usr/bin/python | 
| 2 | 2 | 
| 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be | 
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. | 
| 6 | 6 | 
| 7 import common, commands, logging, os | 7 import common, commands, logging, os | 
| 8 from autotest_lib.client.bin import utils | 8 from autotest_lib.client.bin import utils | 
| 9 | 9 | 
| 10 version = 1 | 10 version = 1 | 
| 11 | 11 | 
| 12 def setup(top_dir): | 12 def setup(top_dir): | 
|  | 13     if os.environ['CHROME_ORIGIN'] != 'LOCAL_SOURCE': | 
|  | 14         logging.info('Skipping Chrome test resource setup for non-local builds') | 
|  | 15         return | 
|  | 16 | 
| 13     chrome_test_files = os.environ['SYSROOT'] + '/usr/local/autotest-chrome' | 17     chrome_test_files = os.environ['SYSROOT'] + '/usr/local/autotest-chrome' | 
| 14     logging.info('Configuring chrome test resources in %s' % top_dir) | 18     logging.info('Configuring chrome test resources in %s' % top_dir) | 
| 15     testsrc_dir = top_dir + '/test_src' | 19     testsrc_dir = top_dir + '/test_src' | 
| 16 | 20 | 
| 17     # Copy test build outputs. | 21     # Copy test build outputs. | 
| 18     utils.run('cp -r %s %s' % (chrome_test_files, testsrc_dir)) | 22     utils.run('cp -r %s %s' % (chrome_test_files, testsrc_dir)) | 
|  | 23 | 
| 19 | 24 | 
| 20 pwd = os.getcwd() | 25 pwd = os.getcwd() | 
| 21 utils.update_version(pwd + '/src', False, version, setup, pwd) | 26 utils.update_version(pwd + '/src', False, version, setup, pwd) | 
| OLD | NEW | 
|---|