Skip to content

Commit db72f42

Browse files
committed
Changed where the extended resources are tested
1 parent 17201fb commit db72f42

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

hack/run-e2e-kind.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export IMAGE_MCAD="${IMAGE_REPOSITORY_MCAD}:${IMAGE_TAG_MCAD}"
4545
CLUSTER_STARTED="false"
4646
export KUTTL_VERSION=0.15.0
4747
export KUTTL_OPTIONS=${TEST_KUTTL_OPTIONS}
48-
export KUTTL_TEST_SUITES=("${ROOT_DIR}/test/kuttl-test-extended-resources.yaml" "${ROOT_DIR}/test/kuttl-test.yaml" "${ROOT_DIR}/test/kuttl-test-deployment-03.yaml" "${ROOT_DIR}/test/kuttl-test-deployment-02.yaml" "${ROOT_DIR}/test/kuttl-test-deployment-01.yaml")
48+
export KUTTL_TEST_SUITES=("${ROOT_DIR}/test/kuttl-test.yaml" "${ROOT_DIR}/test/kuttl-test-deployment-03.yaml" "${ROOT_DIR}/test/kuttl-test-deployment-02.yaml" "${ROOT_DIR}/test/kuttl-test-deployment-01.yaml")
4949
DUMP_LOGS="true"
5050

5151

@@ -408,6 +408,16 @@ function extend-resources {
408408
# Stop communication with cluster
409409
echo "Killing proxy (pid=${PROXY_PID})..."
410410
kill ${PROXY_PID}
411+
412+
# Run kuttl tests to confirm GPUs were added correctly
413+
kuttl_test="${ROOT_DIR}/test/kuttl-test-extended-resources.yaml"
414+
echo "kubectl kuttl test --config ${kuttl_test}"
415+
kubectl kuttl test --config ${kuttl_test}
416+
if [ $? -ne 0 ]
417+
then
418+
echo "kuttl e2e test '${kuttl_test}' failure, exiting."
419+
exit 1
420+
fi
411421
}
412422

413423
function kuttl-tests {

0 commit comments

Comments
 (0)