未验证 提交 9aa43e9c 编写于 作者: Y Yanan Fu 提交者: GitHub

Merge pull request #2093 from yanan-fu/guest_isa_serial

guest_test: using safe mode when execute cmd with serial session
......@@ -76,7 +76,10 @@ def run(test, params, env):
try:
logging.info("------------ Script output ------------")
session.cmd(cmd, print_func=logging.info, timeout=test_timeout)
s, o = session.cmd_status_output(cmd, print_func=logging.info,
timeout=test_timeout, safe=True)
if s != 0:
test.fail("Run script '%s' failed, script output is: %s" % (cmd, o))
finally:
logging.info("------------ End of script output ------------")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册