diff options
author | Rick Elrod <rick@elrod.me> | 2020-07-13 18:58:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-13 18:58:14 +0200 |
commit | d16018fe725e70932a55b9ffdf931dfe6e09bd90 (patch) | |
tree | 701a0ba3dec5aba1da157d6c2f19285098b183e7 /test/integration/targets/async/library | |
parent | pipe: update docs for Popen with shell=True usage (#70596) (diff) | |
download | ansible-d16018fe725e70932a55b9ffdf931dfe6e09bd90.tar.xz ansible-d16018fe725e70932a55b9ffdf931dfe6e09bd90.zip |
Add intentional coverage for an async_wrapper case (#70593)
Change:
- Test async_wrapper when the module it runs has stderr output
Test Plan:
- CI
- Looked at coverage report and saw green for a few lines that weren't
previously green.
Signed-off-by: Rick Elrod <rick@elrod.me>
Diffstat (limited to 'test/integration/targets/async/library')
-rw-r--r-- | test/integration/targets/async/library/async_test.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/integration/targets/async/library/async_test.py b/test/integration/targets/async/library/async_test.py index 723058ab87..f89bd10e74 100644 --- a/test/integration/targets/async/library/async_test.py +++ b/test/integration/targets/async/library/async_test.py @@ -36,6 +36,9 @@ def main(): if 'exception' in fail_mode: raise Exception('failing via exception') + if 'stderr' in fail_mode: + print('printed to stderr', file=sys.stderr) + module.exit_json(**result) finally: |