mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-25 01:30:22 -07:00
Fix test-module failing to validate args (#41004)
* Fix test-module failing to validate args The test-module pass a wrong argument _ansible_tmp cause the validation failed. Change the argument _ansible_tmp to _ansible_tmpdir to fix this. * Add a integration test for test-module. Prior to this change, we don't have a test for test-module. This change ensure the correctness of test-module script.
This commit is contained in:
parent
479b26fe31
commit
b578bf9e20
2 changed files with 5 additions and 1 deletions
|
@ -21,3 +21,7 @@ echo "rc was $APB_RC (must be non-zero)"
|
|||
echo "ensure playbook output shows assert/fail works (True)"
|
||||
echo "$PB_OUT" | grep -F "fail works (True)" || exit 1
|
||||
echo "$PB_OUT" | grep -F "assert works (True)" || exit 1
|
||||
|
||||
# ensure test-module script works well
|
||||
PING_MODULE_PATH="$(pwd)/../../../../lib/ansible/modules/system/ping.py"
|
||||
../../../../hacking/test-module -m "$PING_MODULE_PATH" -I ansible_python_interpreter="$(which python)"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue