diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-05-04 12:21:51 +0200 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-05-04 12:26:11 +0200 |
commit | 5827c2545849441dd60467565aac11964259972f (patch) | |
tree | e64565b1fae707a6dcf1b8c6a5eef9f1961338d1 /lib | |
parent | 30f92ce9d5e895336f73cc1132a7fdc42e378353 (diff) | |
download | u-boot-5827c2545849441dd60467565aac11964259972f.tar.gz u-boot-5827c2545849441dd60467565aac11964259972f.tar.bz2 u-boot-5827c2545849441dd60467565aac11964259972f.zip |
test: stabilize test_efi_secboot
When setting up the console via function efi_console_register() we call
query_console_serial(). This functions sends an escape sequence to the
terminal to query the display size. The response is another escape
sequence.
console.run_command_list() is looking for a regular expression '^==>'.
If the escape sequence for the screen size precedes the prompt without a
line break, no match is found.
When efi_disk_register() is called before efi_console_register() this leads
to a test failuere of the UEFI secure boot tests.
We can avoid the problem if the first UEFI command passed to
u_boot_console.run_command_list() produces output. This patch achieves this
by appending '; echo' to the first UEFI related command of the problematic
tests.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions