summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Kunz <georg.kunz@ericsson.com>2018-08-23 13:56:42 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2018-08-23 16:32:17 +0200
commitb55aa749c379ce7af918f43558f2195e2259d872 (patch)
tree8a88fbfd22467478c199d86e33e5ff42622f13df
parent72ea3965f80691b6660ce9716103030d3e6d9a6b (diff)
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 <georg.kunz@ericsson.com>
-rw-r--r--functest/opnfv_tests/openstack/tempest/tempest.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/functest/opnfv_tests/openstack/tempest/tempest.py b/functest/opnfv_tests/openstack/tempest/tempest.py
index 216709f83..4f8002e26 100644
--- a/functest/opnfv_tests/openstack/tempest/tempest.py
+++ b/functest/opnfv_tests/openstack/tempest/tempest.py
@@ -364,6 +364,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()
self.update_rally_logs()