1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

foreman: Use generic python in test run (#52544)

This commit is contained in:
Jordan Borean 2019-02-19 13:19:54 +10:00 committed by GitHub
parent 103b4c1d09
commit 2991c5d47c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,7 @@
# Wrapper to use the correct Python interpreter and support code coverage. # Wrapper to use the correct Python interpreter and support code coverage.
REL_SCRIPT="../../../../contrib/inventory/foreman.py" REL_SCRIPT="../../../../contrib/inventory/foreman.py"
ABS_SCRIPT="$("${ANSIBLE_TEST_PYTHON_INTERPRETER}" -c "import os; print(os.path.abspath('${REL_SCRIPT}'))")" ABS_SCRIPT="$("python.py" -c "import os; print(os.path.abspath('${REL_SCRIPT}'))")"
# Make sure output written to current directory ends up in the temp dir. # Make sure output written to current directory ends up in the temp dir.
cd "${OUTPUT_DIR}" cd "${OUTPUT_DIR}"