| OLD | NEW |
| 1 #!/usr/bin/python | |
| 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 3 # 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 |
| 4 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 5 | 4 |
| 6 | 5 |
| 7 import logging | 6 import logging |
| 8 import os | 7 import os |
| 9 import pexpect | 8 import pexpect |
| 10 import shutil | 9 import shutil |
| 11 import sys | 10 import sys |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 # Whenever we generate a stripped binary, copy to the symbols dir. If we | 143 # Whenever we generate a stripped binary, copy to the symbols dir. If we |
| 145 # aren't stripping a new binary, assume it's there. | 144 # aren't stripping a new binary, assume it's there. |
| 146 if self.symbols_dir: | 145 if self.symbols_dir: |
| 147 if not os.path.exists(self.symbols_dir): | 146 if not os.path.exists(self.symbols_dir): |
| 148 os.makedirs(self.symbols_dir) | 147 os.makedirs(self.symbols_dir) |
| 149 shutil.copy(self.test_suite, self.symbols_dir) | 148 shutil.copy(self.test_suite, self.symbols_dir) |
| 150 strip = os.environ['STRIP'] | 149 strip = os.environ['STRIP'] |
| 151 cmd_helper.RunCmd([strip, self.test_suite, '-o', target_name]) | 150 cmd_helper.RunCmd([strip, self.test_suite, '-o', target_name]) |
| 152 test_binary = '/data/local/' + self.test_suite_basename | 151 test_binary = '/data/local/' + self.test_suite_basename |
| 153 self.adb.PushIfNeeded(target_name, test_binary) | 152 self.adb.PushIfNeeded(target_name, test_binary) |
| OLD | NEW |