From 77dc6a36fdff1be56305f905194d710004a0937b Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Tue, 3 May 2016 10:38:54 -0400 Subject: [PATCH] added defaults for 'optional' vars (cherry picked from commit 3669ab24563c09fc06348f404f881710062998ad) --- test/utils/run_tests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/utils/run_tests.sh b/test/utils/run_tests.sh index eefb562f20e..352e3841c08 100755 --- a/test/utils/run_tests.sh +++ b/test/utils/run_tests.sh @@ -14,8 +14,8 @@ if [ "${TARGET}" = "sanity" ]; then else 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 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}) if [ "X${TESTS_KEEP_CONTAINER}" = "X" ]; then