ci-automation/test: Always pull mantle image when running tests

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
This commit is contained in:
Jeremi Piotrowski 2024-03-15 14:43:29 +01:00
parent 9b50112c5a
commit 60a45ef0c5

View File

@ -167,7 +167,7 @@ function _test_run_impl() {
# determine success based on test results (tapfile).
set +e
touch sdk_container/.env
docker run --rm --name="${container_name}" --privileged --net host -v /dev:/dev \
docker run --pull always --rm --name="${container_name}" --privileged --net host -v /dev:/dev \
-w /work -v "$PWD":/work "${mantle_ref}" \
bash -c "git config --global --add safe.directory /work && \
source sdk_container/.env && \
@ -176,7 +176,7 @@ function _test_run_impl() {
rm -f "${work_dir}/first_run"
# Note: git safe.directory is not set in this run as it does not use git
docker run --rm --name="${container_name}" --privileged --net host -v /dev:/dev \
docker run --pull always --rm --name="${container_name}" --privileged --net host -v /dev:/dev \
-w /work -v "$PWD":/work "${mantle_ref}" \
ci-automation/test_update_reruns.sh \
"${arch}" "${vernum}" "${image}" "${retry}" \