diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2018-09-11 22:38:03 +0200 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2018-09-23 21:55:30 +0200 |
commit | 7d044886c963d3df9eca00ed7fb0fa4004b68330 (patch) | |
tree | 9b177722fcb136b1071b3c6f2c101d91be35a473 /test/py/tests | |
parent | 35cbb796aa85dadeb5451104c536a33acf1ebcfe (diff) |
test/py: Unicode w/ EFI_SIMPLE_TEXT_INPUT_PROTOCOL
Test that the Euro sign is correctly retrieved from the console via the
EFI_SIMPLE_TEXT_INPUT_PROTOCOL.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'test/py/tests')
-rw-r--r-- | test/py/tests/test_efi_selftest.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/py/tests/test_efi_selftest.py b/test/py/tests/test_efi_selftest.py index 994d2e2241..5d0dba6f4e 100644 --- a/test/py/tests/test_efi_selftest.py +++ b/test/py/tests/test_efi_selftest.py @@ -100,6 +100,13 @@ def test_efi_selftest_text_input(u_boot_console): if m != 0: raise Exception('UP failed in \'text input\' test') u_boot_console.drain_console() + # Euro sign + u_boot_console.run_command(cmd='\xe2\x82\xac', wait_for_echo=False, + send_nl=False, wait_for_prompt=False) + m = u_boot_console.p.expect(['Unicode char 8364']) + if m != 0: + raise Exception('Euro sign failed in \'text input\' test') + u_boot_console.drain_console() u_boot_console.run_command(cmd='x', wait_for_echo=False, send_nl=False, wait_for_prompt=False) m = u_boot_console.p.expect(['Summary: 0 failures', 'Press any key']) |