diff options
author | Rick Elrod <rick@elrod.me> | 2020-06-29 18:02:03 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-29 18:02:03 -0500 |
commit | cc2cee6980dc53378b16d42c7988524c5e1be83b (patch) | |
tree | a054a06a465993b27401546cd59059a5842f6524 /test/integration/targets/module_utils | |
parent | 70bb2b33cae7173d19f31343cee6719940c4d319 (diff) | |
download | ansible-cc2cee6980dc53378b16d42c7988524c5e1be83b.tar.gz |
Fix -vvvvv unicode error in executor.module_common (#70368)
Change:
- Fix a UnicodeDecodeError in executor.module_common that could get
triggered with -vvvvv.
Test Plan:
- `ansible-test integration --docker centos7 module_utils -vvvvv`
This would show the error previously, and no loner does after this
patch.
Signed-off-by: Rick Elrod <rick@elrod.me>
Diffstat (limited to 'test/integration/targets/module_utils')
-rw-r--r-- | test/integration/targets/module_utils/module_utils_vvvvv.yml | 5 | ||||
-rwxr-xr-x | test/integration/targets/module_utils/runme.sh | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/test/integration/targets/module_utils/module_utils_vvvvv.yml b/test/integration/targets/module_utils/module_utils_vvvvv.yml new file mode 100644 index 0000000000..1fe9624f7b --- /dev/null +++ b/test/integration/targets/module_utils/module_utils_vvvvv.yml @@ -0,0 +1,5 @@ +- hosts: testhost + gather_facts: no + tasks: + - name: Use a specially crafted module to see if things were imported correctly + test: diff --git a/test/integration/targets/module_utils/runme.sh b/test/integration/targets/module_utils/runme.sh index 0578e7a66b..e1a0e7c953 100755 --- a/test/integration/targets/module_utils/runme.sh +++ b/test/integration/targets/module_utils/runme.sh @@ -4,5 +4,10 @@ set -eux ANSIBLE_ROLES_PATH=../ ansible-playbook module_utils_basic_setcwd.yml -i ../../inventory "$@" +# Keep the -vvvvv here. This acts as a test for testing that higher verbosity +# doesn't traceback with unicode in the custom module_utils directory path. +ansible-playbook module_utils_vvvvv.yml -i ../../inventory -vvvvv "$@" + ansible-playbook module_utils_test.yml -i ../../inventory -v "$@" + ANSIBLE_MODULE_UTILS=other_mu_dir ansible-playbook module_utils_envvar.yml -i ../../inventory -v "$@" |