mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-31 13:29:08 -07:00
Make test-module use default value for interpreter (#54053)
* Make test-module use default value for interpreter * Changing from static interpreter path to sys.executable as per #54053 * A little ntegration test for #54053
This commit is contained in:
parent
d3dae4a444
commit
54384e7a12
2 changed files with 7 additions and 2 deletions
|
@ -24,8 +24,12 @@ echo "$PB_OUT" | grep -F "assert works (True)" || exit 1
|
|||
|
||||
set -e
|
||||
|
||||
# ensure test-module script works well
|
||||
PING_MODULE_PATH="../../../../lib/ansible/modules/system/ping.py"
|
||||
|
||||
# ensure test-module script works without passing Python interpreter path
|
||||
../../../../hacking/test-module -m "$PING_MODULE_PATH"
|
||||
|
||||
# ensure test-module script works well
|
||||
../../../../hacking/test-module -m "$PING_MODULE_PATH" -I ansible_python_interpreter="$(which python)"
|
||||
|
||||
# ensure module.ansible_version is defined when using test-module
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue