OLD | NEW |
| (Empty) |
1 #!/usr/bin/python | |
2 | |
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 | |
5 # found in the LICENSE file. | |
6 | |
7 import common, commands, logging, os | |
8 from autotest_lib.client.bin import utils | |
9 | |
10 version = 1 | |
11 | |
12 def setup(top_dir): | |
13 if 'CHROME_ORIGIN' not in os.environ.keys() or \ | |
14 (os.environ['CHROME_ORIGIN'] != 'LOCAL_SOURCE' and | |
15 os.environ['CHROME_ORIGIN'] != 'SERVER_SOURCE'): | |
16 logging.info('Skipping Chrome test resource setup for non-local builds') | |
17 return | |
18 | |
19 chrome_test_files = os.environ['SYSROOT'] + '/usr/local/autotest-chrome' | |
20 logging.info('Configuring chrome test resources in %s' % top_dir) | |
21 testsrc_dir = top_dir + '/test_src' | |
22 | |
23 # Copy test build outputs. | |
24 utils.run('cp -ral %s %s' % (chrome_test_files, testsrc_dir)) | |
25 | |
26 | |
27 pwd = os.getcwd() | |
28 utils.update_version(pwd + '/src', False, version, setup, pwd) | |
OLD | NEW |