mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
powershell: display non-ascii characters in command outputs (#37229)
This commit is contained in:
committed by
Matt Davis
parent
fd4d264253
commit
71e8527d7c
@@ -222,3 +222,16 @@
|
||||
- cmdout.stdout_lines|count == 1
|
||||
- cmdout.stdout_lines[0] == "some input"
|
||||
- cmdout.stderr == ""
|
||||
|
||||
- name: echo some non ascii characters
|
||||
win_command: cmd.exe /c echo über den Fußgängerübergang gehen
|
||||
register: nonascii_output
|
||||
|
||||
- name: assert echo some non ascii characters
|
||||
assert:
|
||||
that:
|
||||
- nonascii_output is changed
|
||||
- nonascii_output.rc == 0
|
||||
- nonascii_output.stdout_lines|count == 1
|
||||
- nonascii_output.stdout_lines[0] == 'über den Fußgängerübergang gehen'
|
||||
- nonascii_output.stderr == ''
|
||||
|
||||
Reference in New Issue
Block a user