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

!104 Modified the drivers.py

Merge pull request !104 from stivn/master
......@@ -687,19 +687,19 @@ class JSUnitTestDriver(IDriver):
break
else:
time.sleep(float(actiontime))
start_time = int(time.time())
while True:
data = file_read_pipe.readline()
if data.find("JSApp:") != -1 and data.find("[end] run suites end") != -1:
LOG.info("execute testcase successfully.")
status = True
break
start_time = int(time.time())
while True:
data = file_read_pipe.readline()
if data.find("JSApp:") != -1 and data.find("[end] run suites end") != -1:
LOG.info("execute testcase successfully.")
status = True
break
if int(time.time()) - start_time > 5:
break
break
finally:
_lock_screen(self.config.device)
self._uninstall_hap(self.package_name)
self._uninstall_hap(self.package_name)
else:
self.result = result.get_test_results("Error: install hap failed")
LOG.error("Error: install hap failed")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册