Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Side by Side Diff: client/deps/chrome_test/chrome_test.py

Issue 3175004: Chrome autotest build speedup (Closed) Base URL: ssh://gitrw.chromium.org/autotest.git
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 'CHROME_ORIGIN' not in os.environ.keys() or \ 13 if 'CHROME_ORIGIN' not in os.environ.keys() or \
14 (os.environ['CHROME_ORIGIN'] != 'LOCAL_SOURCE' and 14 (os.environ['CHROME_ORIGIN'] != 'LOCAL_SOURCE' and
15 os.environ['CHROME_ORIGIN'] != 'SERVER_SOURCE'): 15 os.environ['CHROME_ORIGIN'] != 'SERVER_SOURCE'):
16 logging.info('Skipping Chrome test resource setup for non-local builds') 16 logging.info('Skipping Chrome test resource setup for non-local builds')
17 return 17 return
18 18
19 chrome_test_files = os.environ['SYSROOT'] + '/usr/local/autotest-chrome' 19 chrome_test_files = os.environ['SYSROOT'] + '/usr/local/autotest-chrome'
20 logging.info('Configuring chrome test resources in %s' % top_dir) 20 logging.info('Configuring chrome test resources in %s' % top_dir)
21 testsrc_dir = top_dir + '/test_src' 21 testsrc_dir = top_dir + '/test_src'
22 22
23 # Copy test build outputs. 23 # Copy test build outputs.
24 utils.run('cp -r %s %s' % (chrome_test_files, testsrc_dir)) 24 utils.run('cp -ral %s %s' % (chrome_test_files, testsrc_dir))
davidjames 2010/08/11 21:09:57 From the docs for cp, -a is the "same as -dpR". So
25 25
26 26
27 pwd = os.getcwd() 27 pwd = os.getcwd()
28 utils.update_version(pwd + '/src', False, version, setup, pwd) 28 utils.update_version(pwd + '/src', False, version, setup, pwd)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698