mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
allow tests to run with parameters
also fixed test_test_infra to allow tags
This commit is contained in:
@@ -10,6 +10,6 @@ if [ "${TARGET}" = "sanity" ]; then
|
||||
else
|
||||
docker build --pull=true -t ansible_test/${TARGET} test/utils/docker/${TARGET}
|
||||
docker run -d --volume="${PWD}:/root/ansible" ${TARGET_OPTIONS} ansible_test/${TARGET} > /tmp/cid_${TARGET}
|
||||
docker exec -ti $(cat /tmp/cid_${TARGET}) /bin/sh -c 'cd /root/ansible; . hacking/env-setup; (cd test/integration; LC_ALL=en_US.utf-8 make)'
|
||||
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})
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user