ci: Fix E2E_ARGS for helm test

The test_type and deployment related args are being passed
as make option instead of the E2E_ARGS. Pass it as E2E_ARGS.

Signed-off-by: karthik-us <ksubrahm@redhat.com>
This commit is contained in:
karthik-us 2023-11-08 10:25:12 +05:30 committed by mergify[bot]
parent b8c16ccbac
commit 1245b49cb9

View File

@ -198,13 +198,13 @@ node('cico-workspace') {
} }
stage('run e2e') { stage('run e2e') {
timeout(time: 120, unit: 'MINUTES') { timeout(time: 120, unit: 'MINUTES') {
test_type = "--test-rbd=true --test-cephfs=true --test-nfs=true" test_type = '--test-rbd=true --test-cephfs=true --test-nfs=true'
if ("${test_type}" == "cephfs"){ if ("${test_type}" == "cephfs"){
test_type = "--test-cephfs=true --test-rbd=false --test-nfs=false" test_type = '--test-cephfs=true --test-rbd=false --test-nfs=false'
} else if ("${test_type}" == "rbd"){ } else if ("${test_type}" == "rbd"){
test_type = "--test-rbd=true --test-cephfs=false --test-nfs=false" test_type = '--test-rbd=true --test-cephfs=false --test-nfs=false'
} else if ("${test_type}" == "nfs"){ } else if ("${test_type}" == "nfs"){
test_type = "--test-nfs=true --test-cephfs=false --test-rbd=false" test_type = '--test-nfs=true --test-cephfs=false --test-rbd=false'
} }
ssh "cd /opt/build/go/src/github.com/ceph/ceph-csi && make run-e2e NAMESPACE='${namespace}' E2E_ARGS=\"--delete-namespace-on-failure=false --deploy-cephfs=false --deploy-rbd=false --helm-test=true ${test_type}\"" ssh "cd /opt/build/go/src/github.com/ceph/ceph-csi && make run-e2e NAMESPACE='${namespace}' E2E_ARGS=\"--delete-namespace-on-failure=false --deploy-cephfs=false --deploy-rbd=false --helm-test=true ${test_type}\""
} }