Skip to content

Commit

Permalink
Revert "Support for using '--env-var' when running IQE CJI" (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsquizz authored Oct 26, 2023
1 parent a6d163f commit 5cfcb18
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions cji_smoke_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#IQE_SELENIUM="true" -- whether to run IQE pod with a selenium container, default is "false"
#IQE_RP_ARGS=True -- Turn on reporting to reportportal
#IQE_IBUTSU_SOURCE="post_stage" -- update the ibutsu source for the current run
#IQE_ENV_VARS="ENV_VAR1=value1,ENV_VAR2=value2" -- custom set of extra environment variables to set on IQE pod
#NAMESPACE="mynamespace" -- namespace to deploy iqe pod into, usually already set by 'deploy_ephemeral_env.sh'

# Env vars set by 'bootstrap.sh':
Expand All @@ -38,7 +37,7 @@ set -e
: "${IQE_PARALLEL_WORKER_COUNT:='""'}"
: "${IQE_RP_ARGS:='""'}"
: "${IQE_IBUTSU_SOURCE:='""'}"
: "${IQE_ENV_VARS:='""'}"


_running_in_rhel7() {
grep -q "Red Hat Enterprise Linux.*7\." '/etc/redhat-release'
Expand Down Expand Up @@ -67,14 +66,6 @@ if [ "$IQE_SELENIUM" = "true" ]; then
SELENIUM_ARG=" --selenium "
fi

ENV_VAR_ARGS=""
if [ ! -z "$IQE_ENV_VARS" ]; then
IFS=',' read -ra values_array <<< "$IQE_ENV_VARS"
for i in "${values_array[@]}"; do
ENV_VAR_ARGS="${ENV_VAR_ARGS} --env-var $i"
done
fi

# check if there is a iqe-tests container image tag with the corresponding PR
# number if not use the default IQE_IMAGE_TAG tag which you have to set in
# order for this to work properly
Expand Down Expand Up @@ -113,7 +104,6 @@ POD=$(
--parallel-worker-count $IQE_PARALLEL_WORKER_COUNT \
--rp-args $IQE_RP_ARGS \
--ibutsu-source $IQE_IBUTSU_SOURCE \
$ENV_VAR_ARGS \
--namespace $NAMESPACE)
set +x

Expand Down

0 comments on commit 5cfcb18

Please sign in to comment.