diff options
author | rameshiyer27 <ramesh.murugan.iyer@est.tech> | 2023-10-12 15:11:02 +0100 |
---|---|---|
committer | rameshiyer27 <ramesh.murugan.iyer@est.tech> | 2023-10-12 15:11:02 +0100 |
commit | f575f921ac75f48a9ab48bc64f48344dc84a15cd (patch) | |
tree | f25bb7f7b92e5a502ddab2c2aa55d311f6700fd7 /csit | |
parent | 34d9e8a8c4b1816dd91dc70391a1b3fc735a2602 (diff) |
Fix k8s csit test failures
Issue-ID: POLICY-4853
Signed-off-by: rameshiyer27 <ramesh.murugan.iyer@est.tech>
Change-Id: If99cb19a60e65b720a60105d222ce321da7b01d3
Diffstat (limited to 'csit')
-rwxr-xr-x | csit/run-k8s-csit.sh | 6 | ||||
-rwxr-xr-x | csit/start-s3p-tests.sh | 4 |
2 files changed, 4 insertions, 6 deletions
diff --git a/csit/run-k8s-csit.sh b/csit/run-k8s-csit.sh index d383d1a1..248a494f 100755 --- a/csit/run-k8s-csit.sh +++ b/csit/run-k8s-csit.sh @@ -21,10 +21,8 @@ # This script spins up kubernetes cluster in Microk8s for deploying policy helm charts. # Runs CSITs in kubernetes. -if [ -z "${WORKSPACE}" ]; then - WORKSPACE=$(git rev-parse --show-toplevel) - export WORKSPACE -fi +WORKSPACE=$(git rev-parse --show-toplevel) +export WORKSPACE export GERRIT_BRANCH=$(awk -F= '$1 == "defaultbranch" { print $2 }' "${WORKSPACE}"/.gitreview) diff --git a/csit/start-s3p-tests.sh b/csit/start-s3p-tests.sh index 8fb571f4..1609e4bb 100755 --- a/csit/start-s3p-tests.sh +++ b/csit/start-s3p-tests.sh @@ -22,8 +22,8 @@ # Start Kubernetes function start_kubernetes() { - bash run-k8s-csit.sh install $3 - bash get-cluster-info.sh + bash run-k8s-csit.sh install + bash resources/scripts/get-cluster-info.sh } function install_jmeter() { |