Correctly override dir_results and res_dir 97/68897/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Sat, 16 Nov 2019 13:01:05 +0000 (14:01 +0100)
committerCédric Ollivier <cedric.ollivier@orange.com>
Sat, 16 Nov 2019 13:01:49 +0000 (14:01 +0100)
Both have to be modified else publishing artifacts fails [1].

[1] https://build.opnfv.org/ci/job/functest-opnfv-functest-healthcheck-latest-tempest_smoke-run/555/console

Change-Id: Ibd110e4b57cb443b12adea73f73c8cdf7f828652
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
functest/core/tenantnetwork.py

index e619ce9..b4818d7 100644 (file)
@@ -152,8 +152,8 @@ class TenantNetwork1(testcase.TestCase):
         if "case_name" not in kwargs:
             kwargs["case_name"] = 'tenantnetwork1'
         super(TenantNetwork1, self).__init__(**kwargs)
-        self.res_dir = os.path.join(
-            getattr(config.CONF, 'dir_results'), self.case_name)
+        self.dir_results = os.path.join(getattr(config.CONF, 'dir_results'))
+        self.res_dir = os.path.join(self.dir_results, self.case_name)
         self.output_log_name = 'functest.log'
         self.output_debug_log_name = 'functest.debug.log'
         try: