Fixed project lists for retrieving tempest plugins
As openstack/deb-, -specs and -ui project namespaces do not contain
tempest plugins. So, it is better to remove the above projects from
the list in which tempest plugin is searched.
Change-Id: Ie490073ea195a462cb7be0b88b6cb1b8a7b324b3
diff --git a/tools/generate-tempest-plugins-list.py b/tools/generate-tempest-plugins-list.py
index 238a976..a33962b 100644
--- a/tools/generate-tempest-plugins-list.py
+++ b/tools/generate-tempest-plugins-list.py
@@ -72,7 +72,13 @@
# json library won't choke.
projects = sorted(filter(is_in_openstack_namespace, json.loads(r.read()[4:])))
-found_plugins = list(filter(has_tempest_plugin, projects))
+# Retrieve projects having no deb, ui or spec namespace as those namespaces
+# do not contains tempest plugins.
+projects_list = [i for i in projects if not (i.startswith('openstack/deb-') or
+ i.endswith('-ui') or
+ i.endswith('-specs'))]
+
+found_plugins = list(filter(has_tempest_plugin, projects_list))
# Every element of the found_plugins list begins with "openstack/".
# We drop those initial 10 octets when printing the list.