selftests: Run the whole test workflow for SimpleTests

The advanced features of SimpleTests require logging to be enabled,
which is not part of the `test` method, but the full `run_avocado`
workflow. The fact that it passed is that the advanced features were
broken for quite a long time. This patch uses the `run_avocado` which
contains the `_start_logging` and `_stop_logging` methods needed for the
advanced features to work.
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
上级 ec2ae7ab
......@@ -154,7 +154,7 @@ class LoaderTest(unittest.TestCase):
test_parameters['name'] = test.TestName(0, test_parameters['name'])
test_parameters['base_logdir'] = self.tmpdir
tc = test_class(**test_parameters)
tc.test()
tc.run_avocado()
# Load with params
simple_with_params = simple_test.path + " 'foo bar' --baz"
suite = self.loader.discover(simple_with_params, True)
......@@ -227,7 +227,7 @@ class LoaderTest(unittest.TestCase):
test_parameters['name'] = test.TestName(0, test_parameters['name'])
test_parameters['base_logdir'] = self.tmpdir
tc = test_class(**test_parameters)
tc.test()
tc.run_avocado()
avocado_simple_test.remove()
def test_py_simple_test_notexec(self):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册