diff options
Diffstat (limited to 'functest')
-rw-r--r-- | functest/core/pytest_suite_runner.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/functest/core/pytest_suite_runner.py b/functest/core/pytest_suite_runner.py index bcbaa25d..9d787359 100644 --- a/functest/core/pytest_suite_runner.py +++ b/functest/core/pytest_suite_runner.py @@ -30,6 +30,11 @@ class PyTestSuiteRunner(testcase.TestCase): """ Starts test execution from the functest framework """ + try: + name = kwargs["name"] + self.suite = unittest.TestLoader().loadTestsFromName(name) + except KeyError: + pass self.start_time = time.time() result = unittest.TextTestRunner(verbosity=2).run(self.suite) self.stop_time = time.time() |