Skip to content

Commit 8346eac

Browse files
committed
Do not test VERSIONS 3.9-minimal and 3.11-minimal in OpenShift 4.
They are not present in RedHat Container Catalog. Signed-off-by: Petr "Stone" Hracek <[email protected]>
1 parent 2a45dae commit 8346eac

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

test/run-openshift-remote-cluster

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,12 @@ export CT_OCP4_TEST=true
4141
test -n "${IMAGE_NAME-}" || false 'make sure $IMAGE_NAME is defined'
4242
test -n "${VERSION-}" || false 'make sure $VERSION is defined'
4343

44-
45-
TEST_SUMMARY=''
46-
TEST_SET=${TESTS:-$TEST_LIST} ct_run_tests_from_testset "openshift-remote-cluster"
44+
if [[ "${VERSION}" == "3.9-minimal" ]] || [[ "${VERSION}" == "3.11-minimal" ]]; then
45+
echo "Skipping tests for minimal images. We do not provide them in container catalog registry."
46+
exit 0
47+
else
48+
TEST_SUMMARY=''
49+
TEST_SET=${TESTS:-$TEST_LIST} ct_run_tests_from_testset "openshift-remote-cluster"
50+
fi
4751

4852
# vim: set tabstop=2:shiftwidth=2:expandtab:
49-

test/test-lib-python.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function test_python_s2i_app_ex() {
8383
if [[ "${VERSION}" == *"minimal"* ]]; then
8484
VERSION=$(echo "${VERSION}" | cut -d "-" -f 1)
8585
fi
86-
if [[ "${VERSION}" == "3.11" ]] || [[ "${VERSION}" == "3.12" ]]; then
86+
if [[ "${VERSION}" == "3.11" ]] || [[ "${VERSION}" == "3.12" ]] || [[ "${VERSION}" == "3.12-minimal" ]]; then
8787
branch="4.2.x"
8888
else
8989
branch="2.2.x"
@@ -106,7 +106,7 @@ django-postgresql-persistent.json"
106106
if [[ "${VERSION}" == *"minimal"* ]]; then
107107
VERSION=$(echo "${VERSION}" | cut -d "-" -f 1)
108108
fi
109-
if [[ "${VERSION}" == "3.11" ]] || [[ "${VERSION}" == "3.12" ]]; then
109+
if [[ "${VERSION}" == "3.11" ]] || [[ "${VERSION}" == "3.12" ]] || [[ "${VERSION}" == "3.12-minimal" ]]; then
110110
postgresql_image="quay.io/sclorg/postgresql-12-c8s|postgresql:12"
111111
postgresql_version="12"
112112
branch="4.2.x"

0 commit comments

Comments
 (0)