diff --git a/utils/libcxx/android/test/format.py b/utils/libcxx/android/test/format.py index 228272c18..e5252a8a1 100644 --- a/utils/libcxx/android/test/format.py +++ b/utils/libcxx/android/test/format.py @@ -52,32 +52,6 @@ class TestFormat(HostTestFormat): def _wd_path(self, test_name, file_name): return os.path.join(self._working_directory(test_name), file_name) - def _build(self, exec_path, source_path, compile_only=False, - use_verify=False): - # pylint: disable=protected-access - cmd, report, rc = libcxx.test.format.LibcxxTestFormat._build( - self, exec_path, source_path, compile_only, use_verify) - if rc != 0: - return cmd, report, rc - - try: - exec_file = os.path.basename(exec_path) - - adb.mkdir(self._working_directory(exec_file)) - adb.push(exec_path, self._wd_path(exec_file, exec_file)) - - # Push any .dat files in the same directory as the source to the - # working directory. - src_dir = os.path.dirname(source_path) - data_files = [f for f in os.listdir(src_dir) if f.endswith('.dat')] - for data_file in data_files: - df_path = os.path.join(src_dir, data_file) - df_dev_path = self._wd_path(exec_file, data_file) - adb.push(df_path, df_dev_path) - return cmd, report, rc - except adb.AdbError as ex: - return self._make_report(ex.cmd, ex.out, ex.err, ex.exit_code) - def _clean(self, exec_path): exec_file = os.path.basename(exec_path) cmd = ['adb', 'shell', 'rm', '-rf', self._working_directory(exec_file)]