From 081c33c451e2ff50e18c7a852ab273e06ef823dd Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Tue, 22 Mar 2016 09:49:19 -0400 Subject: [PATCH] Adding a docker pull to the run_tests.sh script --- test/utils/run_tests.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/test/utils/run_tests.sh b/test/utils/run_tests.sh index eef7f1f60ed..03d8f653ef0 100755 --- a/test/utils/run_tests.sh +++ b/test/utils/run_tests.sh @@ -10,6 +10,7 @@ if [ "${TARGET}" = "sanity" ]; then else set -e export C_NAME="testAbull_$$_$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1)" + docker pull ansible/ansible:${TARGET} docker run -d --volume="${PWD}:/root/ansible:Z" --name "${C_NAME}" ${TARGET_OPTIONS} ansible/ansible:${TARGET} > /tmp/cid_${TARGET} docker exec -ti $(cat /tmp/cid_${TARGET}) /bin/sh -c "export TEST_FLAGS='${TEST_FLAGS}'; cd /root/ansible; . hacking/env-setup; (cd test/integration; LC_ALL=en_US.utf-8 make)" docker kill $(cat /tmp/cid_${TARGET})