From 071abb80da8bd2176e5c99ae3ba0afac3d986b07 Mon Sep 17 00:00:00 2001 From: Georg Kunz Date: Thu, 23 Aug 2018 13:56:42 +0200 Subject: Create output directory The rally.conf gets copied before the target directory has been created. JIRA: FUNCTEST-1007 JIRA: DOVETAIL-730 Change-Id: Ie774fce994ada644c1163600e6c62e1231fde443 Signed-off-by: Georg Kunz (cherry picked from commit b55aa749c379ce7af918f43558f2195e2259d872) --- functest/opnfv_tests/openstack/tempest/tempest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/functest/opnfv_tests/openstack/tempest/tempest.py b/functest/opnfv_tests/openstack/tempest/tempest.py index 6b584519d..4965244e3 100644 --- a/functest/opnfv_tests/openstack/tempest/tempest.py +++ b/functest/opnfv_tests/openstack/tempest/tempest.py @@ -310,6 +310,8 @@ class TempestCommon(singlevm.VmReady1): try: assert super(TempestCommon, self).run( **kwargs) == testcase.TestCase.EX_OK + if not os.path.exists(self.res_dir): + os.makedirs(self.res_dir) self.update_rally_regex() self.update_default_role() shutil.copy("/etc/rally/rally.conf", self.res_dir) -- cgit 1.2.3-korg