提交 c135b369 编写于 作者: W Wei Jiangang

avocado.core.runner: Fix undefined name

Signed-off-by: NWei Jiangang <weijg.fnst@cn.fujitsu.com>
上级 592535b8
......@@ -150,7 +150,7 @@ class RemoteTestRunner(TestRunner):
break
else:
raise ValueError("Could not find the beginning of the remote JSON"
" output:\n%s" % result.stdout)
" output:\n%s" % output)
if json_result.endswith('}'): # probably single-line
try:
response = json.loads(json_result)
......@@ -168,7 +168,7 @@ class RemoteTestRunner(TestRunner):
pass
if not response:
raise ValueError("Could not find the end of the remote JSON "
"output:\n%s" % result.stdout)
"output:\n%s" % output)
return response
def run_test(self, urls, timeout):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册