From 704f3441de39a07901faaf8b0622de77aa3d0f86 Mon Sep 17 00:00:00 2001 From: Marc Koderer Date: Wed, 15 Jul 2015 08:31:30 +0200 Subject: [PATCH] Fix error in loader.discover() call There is no argument "top_level" available. This causes an error while using the plugin interface. Change-Id: Id628b68b651144a08ca263dd0dc056987b108e69 Closes-Bug: #1474685 --- tempest/test_discover/test_discover.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tempest/test_discover/test_discover.py b/tempest/test_discover/test_discover.py index 86aa855628..dac7d9184f 100644 --- a/tempest/test_discover/test_discover.py +++ b/tempest/test_discover/test_discover.py @@ -48,8 +48,8 @@ def load_tests(loader, tests, pattern): for plugin in plugin_load_tests: test_dir, top_path = plugin_load_tests[plugin] if not pattern: - suite.addTests(loader.discover(test_dir, top_level=top_path)) + suite.addTests(loader.discover(test_dir, top_level_dir=top_path)) else: suite.addTests(loader.discover(test_dir, pattern=pattern, - top_level=top_path)) + top_level_dir=top_path)) return suite