OLD | NEW |
1 # Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 """Base script for doing test setup.""" | 5 """Base script for doing test setup.""" |
6 | 6 |
7 import logging | 7 import logging |
8 import os | 8 import os |
9 | 9 |
10 from pylib import constants | 10 from pylib import constants |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 # instead of md5sum. Perform a sanity check here. | 52 # instead of md5sum. Perform a sanity check here. |
53 i.VerifyHardlinks() | 53 i.VerifyHardlinks() |
54 i.PurgeExcluded(deps_exclusion_list) | 54 i.PurgeExcluded(deps_exclusion_list) |
55 i.MoveOutputDeps() | 55 i.MoveOutputDeps() |
56 return i | 56 return i |
57 | 57 |
58 | 58 |
59 def PushDataDeps(device, device_dir, test_options): | 59 def PushDataDeps(device, device_dir, test_options): |
60 valgrind_tools.PushFilesForTool(test_options.tool, device) | 60 valgrind_tools.PushFilesForTool(test_options.tool, device) |
61 if os.path.exists(constants.ISOLATE_DEPS_DIR): | 61 if os.path.exists(constants.ISOLATE_DEPS_DIR): |
62 device.PushChangedFiles([ | 62 device.PushChangedFiles([(constants.ISOLATE_DEPS_DIR, device_dir)], |
63 (os.path.join(constants.ISOLATE_DEPS_DIR, p), | 63 delete_device_stale=test_options.delete_stale_data) |
64 '%s/%s' % (device_dir, p)) | |
65 for p in os.listdir(constants.ISOLATE_DEPS_DIR)]) | |
OLD | NEW |