Chung-yih Wang | f2c93cf | 2013-02-27 12:35:05 +0800 | [diff] [blame] | 1 | # Copyright (c) 2013 The Chromium OS Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | import logging |
| 6 | import os |
| 7 | |
| 8 | # Setup autotest_lib path by importing common. |
| 9 | import common |
| 10 | from autotest_lib.client.bin import utils |
| 11 | |
| 12 | |
| 13 | version = 1 |
| 14 | |
| 15 | |
| 16 | def setup(setup_dir): |
| 17 | """Stores a copy of the chromite buildbot source code for use on a DUT. |
| 18 | |
| 19 | @param setup_dir: the target directory |
| 20 | |
| 21 | """ |
| 22 | logging.info('setup(%s)', setup_dir) |
| 23 | |
| 24 | pwd = os.getcwd() |
| 25 | utils.update_version(os.getcwd(), True, version, setup, pwd) |