Install Ansible only for collection tests

This commit is contained in:
Shane McDonald
2021-02-08 15:50:06 -05:00
parent ddcbc408b9
commit f2dfa132a7
2 changed files with 4 additions and 1 deletions

View File

@@ -383,7 +383,8 @@ test_collection:
rm -f $(shell ls -d $(VENV_BASE)/awx/lib/python* | head -n 1)/no-global-site-packages.txt
if [ "$(VENV_BASE)" ]; then \
. $(VENV_BASE)/awx/bin/activate; \
fi; \
fi && \
pip install ansible && \
py.test $(COLLECTION_TEST_DIRS) -v
# The python path needs to be modified so that the tests can find Ansible within the container
# First we will use anything expility set as PYTHONPATH