summaryrefslogtreecommitdiffstats
path: root/testcases/VIM/OpenStack/CI
diff options
context:
space:
mode:
authorViktor Tikkanen <viktor.tikkanen@nokia.com>2016-02-08 19:40:22 +0200
committerViktor Tikkanen <viktor.tikkanen@nokia.com>2016-02-08 19:44:01 +0200
commit8d7f1158885ca2d880811747b07f34ab50d2031d (patch)
treeab17115882ffe5c8c6ee5fe833ee0b060dd592fc /testcases/VIM/OpenStack/CI
parentc7c25f675dabd5b1bd3f17a13a76173f66ad277e (diff)
Used sed instead of crudini for updating regex
It seems that crudini has limitations regarding quotation marks so sed tool is used instead in order to replace ssh_user_regex parameter into tempest.conf file. Change-Id: I8587b3e6b0c15930407ab90bf05f00086348edf6 Signed-off-by: Viktor Tikkanen <viktor.tikkanen@nokia.com>
Diffstat (limited to 'testcases/VIM/OpenStack/CI')
-rw-r--r--testcases/VIM/OpenStack/CI/libraries/run_tempest.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/testcases/VIM/OpenStack/CI/libraries/run_tempest.py b/testcases/VIM/OpenStack/CI/libraries/run_tempest.py
index 5738fd479..b8ed2716e 100644
--- a/testcases/VIM/OpenStack/CI/libraries/run_tempest.py
+++ b/testcases/VIM/OpenStack/CI/libraries/run_tempest.py
@@ -203,8 +203,7 @@ def configure_tempest():
cmd = "crudini --set "+tempest_conf_file+" identity password " \
+USER_PASSWORD
functest_utils.execute_command(cmd,logger)
- cmd = "crudini --set "+tempest_conf_file+" input-scenario ssh_user_regex " \
- +SSH_USER_REGEX
+ cmd = "sed -i 's/.*ssh_user_regex.*/ssh_user_regex = "+SSH_USER_REGEX+"/' "+tempest_conf_file
functest_utils.execute_command(cmd,logger)