提交 0bb3c5f5 编写于 作者: R Rudá Moura 提交者: Ruda Moura

avocado.plugins.jsonresult: Use self.stream.debuglog.

Signed-off-by: NRuda Moura <rmoura@redhat.com>
上级 3305f2f2
......@@ -33,7 +33,7 @@ class JSONTestResult(TestResult):
Called once before any tests are executed.
"""
TestResult.start_tests(self)
self.json = {'debuglog': self.args.test_result_debuglog,
self.json = {'debuglog': self.stream.debuglog,
'tests': []}
def end_test(self, test):
......
......@@ -47,10 +47,9 @@ class JSONResultTest(unittest.TestCase):
def setUp(self):
self.tmpfile = mkstemp()
args = argparse.Namespace(json_output=self.tmpfile[1],
test_result_debuglog='debuglog',
test_result_loglevel='loglevel')
args = argparse.Namespace(json_output=self.tmpfile[1])
stream = _Stream()
stream.debuglog = 'debuglog'
self.test_result = jsonresult.JSONTestResult(stream, args)
self.test_result.filename = self.tmpfile[1]
self.test_result.start_tests()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册