aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--functest/core/pytest_suite_runner.py5
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()