powershell: display non-ascii characters in command outputs (#37229)

This commit is contained in:
Jordan Borean 2018-04-06 07:59:51 +10:00 committed by Matt Davis
commit 71e8527d7c
6 changed files with 96 additions and 69 deletions

View file

@ -144,6 +144,20 @@
# TODO: re-enable after catastrophic failure behavior is cleaned up
# - asyncresult.msg is search('failing via exception')
- name: echo some non ascii characters
win_command: cmd.exe /c echo über den Fußgängerübergang gehen
async: 10
poll: 1
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 == ''
# FUTURE: figure out why the last iteration of this test often fails on shippable
#- name: loop async success