OLD | NEW |
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 | 5 |
6 import logging | 6 import logging |
7 import os | 7 import os |
8 import pexpect | 8 import pexpect |
9 import shutil | 9 import shutil |
10 import sys | 10 import sys |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 os.makedirs(self.symbols_dir) | 148 os.makedirs(self.symbols_dir) |
149 shutil.copy(self.test_suite, self.symbols_dir) | 149 shutil.copy(self.test_suite, self.symbols_dir) |
150 strip = os.environ['STRIP'] | 150 strip = os.environ['STRIP'] |
151 cmd_helper.RunCmd([strip, self.test_suite, '-o', target_name]) | 151 cmd_helper.RunCmd([strip, self.test_suite, '-o', target_name]) |
152 test_binary = '/data/local/tmp/' + self.test_suite_basename | 152 test_binary = '/data/local/tmp/' + self.test_suite_basename |
153 self.adb.PushIfNeeded(target_name, test_binary) | 153 self.adb.PushIfNeeded(target_name, test_binary) |
154 | 154 |
155 def _GetTestSuiteBaseName(self): | 155 def _GetTestSuiteBaseName(self): |
156 """Returns the base name of the test suite.""" | 156 """Returns the base name of the test suite.""" |
157 return os.path.basename(self.test_suite) | 157 return os.path.basename(self.test_suite) |
OLD | NEW |