From: Cédric Ollivier Date: Sun, 17 Nov 2019 09:27:46 +0000 (+0100) Subject: Correctly override dir_results and res_dir in rally_kubernetes X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F17%2F68917%2F1;p=functest-kubernetes.git Correctly override dir_results and res_dir in rally_kubernetes Both have to be modified else publishing artifacts fails [1]. https://build.opnfv.org/ci/job/functest-kubernetes-opnfv-functest-kubernetes-smoke-jerma-xrally_kubernetes-run/47/console Change-Id: If21334d7d1342737575f9a260a0ad647c4f382e2 Signed-off-by: Cédric Ollivier --- diff --git a/functest_kubernetes/rally/rally_kubernetes.py b/functest_kubernetes/rally/rally_kubernetes.py index 5955b894..e7a903d9 100644 --- a/functest_kubernetes/rally/rally_kubernetes.py +++ b/functest_kubernetes/rally/rally_kubernetes.py @@ -28,8 +28,8 @@ class RallyKubernetes(testcase.TestCase): def __init__(self, **kwargs): super(RallyKubernetes, self).__init__(**kwargs) - self.res_dir = "/home/opnfv/functest/results/{}".format( - self.case_name) + self.dir_results = "/home/opnfv/functest/results" + self.res_dir = os.path.join(self.dir_results, self.case_name) def run(self, **kwargs): self.start_time = time.time()