diff --git a/test/integration/targets/inventory_foreman_script/foreman.sh b/test/integration/targets/inventory_foreman_script/foreman.sh index 18e9e153f8..64441572e0 100755 --- a/test/integration/targets/inventory_foreman_script/foreman.sh +++ b/test/integration/targets/inventory_foreman_script/foreman.sh @@ -2,7 +2,7 @@ # Wrapper to use the correct Python interpreter and support code coverage. 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. cd "${OUTPUT_DIR}"