diff options
| author | Brett Chabot <brettchabot@google.com> | 2013-05-16 23:00:43 -0700 |
|---|---|---|
| committer | Brett Chabot <brettchabot@google.com> | 2013-05-16 23:06:25 -0700 |
| commit | e607d3a8a4d6c5d045a85c614393d60d9d5718f7 (patch) | |
| tree | b18b5559900d55d185c95ceae2ae669deb993413 /testrunner | |
| parent | 72a0a13adbb092d67d014c1d2a87da80e702f288 (diff) | |
Attempt to fix runtest for native tests.
Create dest dir before pushing
Use correct exec path data/nativetest/test/test
Change-Id: Ib2555c0e98ea5e13fdf6bf24697bd1b82d74b681
Diffstat (limited to 'testrunner')
| -rwxr-xr-x | testrunner/runtest.py | 3 | ||||
| -rw-r--r-- | testrunner/test_defs/gtest.py | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/testrunner/runtest.py b/testrunner/runtest.py index f7a4759a1..ba09d9766 100755 --- a/testrunner/runtest.py +++ b/testrunner/runtest.py @@ -301,6 +301,9 @@ class TestRunner(object): m = self._RE_MAKE_INSTALL_PATH.match(install_path) if m: remote_path = m.group(1) + remote_dir = os.path.dirname(remote_path) + logger.Log("adb shell mkdir -p %s" % remote_dir) + self._adb.SendShellCommand("mkdir -p %s" % remote_dir) abs_install_path = os.path.join(self._root_path, install_path) logger.Log("adb push %s %s" % (abs_install_path, remote_path)) self._adb.Push(abs_install_path, remote_path) diff --git a/testrunner/test_defs/gtest.py b/testrunner/test_defs/gtest.py index 094ceea1d..dc72f94ca 100644 --- a/testrunner/test_defs/gtest.py +++ b/testrunner/test_defs/gtest.py @@ -89,7 +89,8 @@ class GTestFactory(test_suite.AbstractTestFactory): logger.SilentLog('Creating gtest suite for file %s' % test_file) suite = GTestSuite() suite.SetBuildPath(self.GetBuildPath()) - suite.SetTargetExecPath(os.path.join(target_root_path, test_file)) + # expect tests in /data/nativetest/test_file/test_file + suite.SetTargetExecPath(os.path.join(target_root_path, test_file, test_file)) test_suites.append(suite) return test_suites |
