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

Side by Side Diff: build/android/pylib/gtest/test_package_exe.py

Issue 1314313004: [Android][telemetry] Update pylib imports for modules that moved into devil. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 | « build/android/pylib/gtest/test_package_apk.py ('k') | build/android/pylib/gtest/test_runner.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 """Defines TestPackageExecutable to help run stand-alone executables.""" 5 """Defines TestPackageExecutable to help run stand-alone executables."""
6 6
7 import logging 7 import logging
8 import os 8 import os
9 import posixpath 9 import posixpath
10 import sys 10 import sys
11 import tempfile 11 import tempfile
12 12
13 from pylib import cmd_helper 13 from devil.android import device_errors
14 from devil.utils import cmd_helper
14 from pylib import constants 15 from pylib import constants
15 from pylib import pexpect 16 from pylib import pexpect
16 from pylib.device import device_errors
17 from pylib.gtest import gtest_test_instance 17 from pylib.gtest import gtest_test_instance
18 from pylib.gtest.test_package import TestPackage 18 from pylib.gtest.test_package import TestPackage
19 19
20 20
21 class TestPackageExecutable(TestPackage): 21 class TestPackageExecutable(TestPackage):
22 """A helper class for running stand-alone executables.""" 22 """A helper class for running stand-alone executables."""
23 23
24 _TEST_RUNNER_RET_VAL_FILE = 'gtest_retval' 24 _TEST_RUNNER_RET_VAL_FILE = 'gtest_retval'
25 25
26 def __init__(self, suite_name): 26 def __init__(self, suite_name):
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 154
155 test_binary_path = constants.TEST_EXECUTABLE_DIR + '/' + self.suite_name 155 test_binary_path = constants.TEST_EXECUTABLE_DIR + '/' + self.suite_name
156 device.PushChangedFiles([(target_name, test_binary_path)]) 156 device.PushChangedFiles([(target_name, test_binary_path)])
157 deps_path = self.suite_path + '_deps' 157 deps_path = self.suite_path + '_deps'
158 if os.path.isdir(deps_path): 158 if os.path.isdir(deps_path):
159 device.PushChangedFiles([(deps_path, test_binary_path + '_deps')]) 159 device.PushChangedFiles([(deps_path, test_binary_path + '_deps')])
160 160
161 #override 161 #override
162 def PullAppFiles(self, device, files, directory): 162 def PullAppFiles(self, device, files, directory):
163 pass 163 pass
OLDNEW
« no previous file with comments | « build/android/pylib/gtest/test_package_apk.py ('k') | build/android/pylib/gtest/test_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698