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:33:11 +0200
commit071abb80da8bd2176e5c99ae3ba0afac3d986b07 (patch)
treeae84aaeaea36161ceb1a79f8d41e8aa36dbe1b1c
parentf98f4954e2d9a68d40163eb48d4f6afc8e520590 (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> (cherry picked from commit b55aa749c379ce7af918f43558f2195e2259d872)
-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 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)