Skip to content

Commit

Permalink
Merge pull request moby#45769 from thaJeztah/fix_docker_py
Browse files Browse the repository at this point in the history
testing: temporarily pin docker-py tests to use "bullseye"
  • Loading branch information
thaJeztah committed Jun 20, 2023
2 parents 97455cc + 19d860f commit 3fae7ea
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion hack/make/test-docker-py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ source hack/make/.integration-test-helpers
#: exit status 128
: "${DOCKER_PY_COMMIT:=5.0.3}"

# The version (and variant) of the python image to use for the tests;
# see https://github.com/docker/docker-py/blob/5.0.3/tests/Dockerfile#L1C5-L3
#
# TODO remove once https://github.com/docker/docker-py/pull/3145 is merged.
: "${PYTHON_VERSION:=3.7-bullseye}"

# custom options to pass py.test
#
# This option can be used to temporarily skip flaky tests (using the `--deselect`
Expand Down Expand Up @@ -50,7 +56,7 @@ source hack/make/.integration-test-helpers
[ -z "${TESTDEBUG}" ] && build_opts="--quiet"
[ -f /.dockerenv ] || build_opts="${build_opts} --network=host"
# shellcheck disable=SC2086
exec docker build ${build_opts} -t "${docker_py_image}" -f tests/Dockerfile "https://github.com/docker/docker-py.git#${DOCKER_PY_COMMIT}"
exec docker build ${build_opts} --build-arg PYTHON_VERSION="${PYTHON_VERSION}" -t "${docker_py_image}" -f tests/Dockerfile "https://github.com/docker/docker-py.git#${DOCKER_PY_COMMIT}"
)
fi

Expand Down

0 comments on commit 3fae7ea

Please sign in to comment.