未验证 提交 b0c2de83 编写于 作者: O openharmony_ci 提交者: Gitee

!127 修复pushkit bug

Merge pull request !127 from liguangjie/master
......@@ -235,7 +235,7 @@ class OHJSUnitTestDriver(IDriver):
hilog_open = os.open(hilog, os.O_WRONLY | os.O_CREAT | os.O_APPEND,
0o755)
self.config.device.execute_shell_command(command="hilog -r")
with os.fdopen(hilog_open, "a") as hilog_file_pipe:
self.config.device.start_catch_device_log(hilog_file_pipe)
self._run_oh_jsunit(config_file, request)
......
......@@ -165,12 +165,12 @@ class PushKit(ITestKit):
LOG.debug(
"Push file finished from {} to {}".format(
os.path.join(root, file), dst))
self.pushed_file.append(file)
self.pushed_file.append(os.path.join(dst, file))
else:
device.hdc_command("file send {} {}".format(real_src_path,
dst))
LOG.debug("Push file finished from {} to {}".format(src, dst))
self.pushed_file.append(real_src_path)
self.pushed_file.append(dst)
for command in self.post_push:
run_command(device, command)
return self.pushed_file, dst
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册