Skip to content

Commit 9258ba0

Browse files
committed
[tempest] Handle quotes in TEMPESTCONF_OVERRIDES
Use 'eval' to expand the TEMPESTCONF_OVERRIDES variable prior to using it to run discover-tempest-config. This prevents embedded quotes within the variable from being mangled. Without the 'eval' embedded quoted strings like "Some String" get mangled into '"Some' 'String"' on the resulting command line. Jira: OSPRH-10092
1 parent 3addfef commit 9258ba0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

container-images/tcib/base/os/tempest/run_tempest.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ function run_git_tempest {
318318
tempest init openshift
319319
pushd $TEMPEST_DIR
320320

321-
discover-tempest-config ${TEMPESTCONF_ARGS} ${TEMPESTCONF_OVERRIDES} \
321+
eval discover-tempest-config ${TEMPESTCONF_ARGS} ${TEMPESTCONF_OVERRIDES} \
322322
&& tempest run ${TEMPEST_ARGS}
323323
RETURN_VALUE=$?
324324

@@ -340,7 +340,7 @@ function run_rpm_tempest {
340340
# List Tempest packages
341341
rpm -qa | grep tempest
342342

343-
discover-tempest-config ${TEMPESTCONF_ARGS} ${TEMPESTCONF_OVERRIDES} \
343+
eval discover-tempest-config ${TEMPESTCONF_ARGS} ${TEMPESTCONF_OVERRIDES} \
344344
&& tempest run ${TEMPEST_ARGS}
345345
RETURN_VALUE=$?
346346

0 commit comments

Comments
 (0)