summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDelia Popescu <delia.popescu@enea.com>2018-08-02 15:50:41 +0300
committerDelia Popescu <delia.popescu@enea.com>2018-08-02 17:00:23 +0300
commit5bf02523aeb68ea79805d8c0b5d5823757920432 (patch)
tree8f5bcfbc34050a5131a0a734652f8c0a496da219
parent05673e269855dd3dad1518e9579861e25c395434 (diff)
Fix parse error in tempest_smoke
Test failes to parse /etc/rally/rally.conf (RALLY_CONF_FILE) whith inplace=1 keyword argument for fileinput One new space is added in second line JIRA: ARMBAND-395 Change-Id: I8adb333047f9962f4105a6a74e2f8ef83d5745e0 Signed-off-by: Delia Popescu <delia.popescu@enea.com>
-rw-r--r--functest/opnfv_tests/openstack/tempest/conf_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/functest/opnfv_tests/openstack/tempest/conf_utils.py b/functest/opnfv_tests/openstack/tempest/conf_utils.py
index 88ad3b2d9..6eb79ed41 100644
--- a/functest/opnfv_tests/openstack/tempest/conf_utils.py
+++ b/functest/opnfv_tests/openstack/tempest/conf_utils.py
@@ -55,7 +55,7 @@ def create_rally_deployment():
with open(RALLY_AARCH64_PATCH_PATH, "r") as pfile:
rally_patch_conf = pfile.read()
- for line in fileinput.input(RALLY_CONF_PATH, inplace=1):
+ for line in fileinput.input(RALLY_CONF_PATH):
print(line, end=' ')
if "cirros|testvm" in line:
print(rally_patch_conf)