Fix the test dir

Change-Id: Ibbcff91574ef3620cb170193412b985b664e7ac4
This commit is contained in:
YAMAMOTO Takashi 2019-04-03 13:17:34 +09:00
parent b48b907687
commit 307f3f60b5

View File

@ -24,12 +24,10 @@ class NeutronTaaSPlugin(plugins.TempestPlugin):
def load_tests(self):
this_dir = os.path.dirname(os.path.abspath(__file__))
# top_level_dir = $(this_dir)/../../..
d = os.path.split(this_dir)[0]
d = os.path.split(d)[0]
top_level_dir = os.path.split(d)[0]
# top_level_dir = $(this_dir)/..
top_level_dir = os.path.split(this_dir)[0]
test_dir = os.path.join(top_level_dir,
'neutron_taas/tests/tempest_plugin/tests')
'neutron_taas_tempest_plugin/tests')
return (test_dir, top_level_dir)
def register_opts(self, conf):