Skip to content

Commit

Permalink
Merge pull request #129 from lpiwowar/fix/tempestconf-remove-option
Browse files Browse the repository at this point in the history
[tempest] Fix parsing of TEMPESTCONF_{REMOVE,APPEND}
  • Loading branch information
openshift-merge-bot[bot] committed Feb 14, 2024
2 parents ac3ca3d + 555cdb6 commit 6ac9805
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions container-images/tcib/base/os/tempest/run_tempest.sh
Expand Up @@ -150,13 +150,17 @@ IFS=$OLD_IFS

if [[ ! -z ${TEMPESTCONF_APPEND} ]]; then
while IFS= read -r line; do
TEMPESTCONF_ARGS+="--append $line "
[[ ! -n "$line" ]] && continue
arr_line=( $line )
TEMPESTCONF_ARGS+="--append ${arr_line[0]}=${arr_line[1]} "
done <<< "$TEMPESTCONF_APPEND"
fi

if [[ ! -z ${TEMPESTCONF_REMOVE} ]]; then
while IFS= read -r line; do
TEMPESTCONF_ARGS+="--remove $line "
[[ ! -n "$line" ]] && continue
arr_line=( $line )
TEMPESTCONF_ARGS+="--remove ${arr_line[0]}=${arr_line[1]} "
done <<< "$TEMPESTCONF_REMOVE"
fi

Expand Down

0 comments on commit 6ac9805

Please sign in to comment.