Skip to content

Commit d7906ff

Browse files
frenzymadnessphracek
authored andcommitted
Use newer branch of django-ex for newer Pythons in s2i_app_ex test.
Fixes: #730
1 parent adde84a commit d7906ff

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

test/test-lib-python.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,16 @@ function test_python_s2i_app_ex_standalone() {
8080
}
8181

8282
function test_python_s2i_app_ex() {
83-
django_example_repo_url="https://github.com/sclorg/django-ex.git#2.2.x"
83+
if [[ "${VERSION}" == *"minimal"* ]]; then
84+
VERSION=$(echo "${VERSION}" | cut -d "-" -f 1)
85+
fi
86+
if [[ "${VERSION}" == "3.11" ]] || [[ "${VERSION}" == "3.12" ]]; then
87+
branch="4.2.x"
88+
else
89+
branch="2.2.x"
90+
fi
91+
92+
django_example_repo_url="https://github.com/sclorg/django-ex.git#${branch}"
8493
ct_os_test_s2i_app "${IMAGE_NAME}" \
8594
"${django_example_repo_url}" \
8695
. \

0 commit comments

Comments
 (0)