Merge pull request #14592 from kaspar030/tests_shell_blacklist_for_line_exceeded_test

tests/shell: add blacklist for check_line_exceeded(), add z1
This commit is contained in:
Kaspar Schleiser 2020-07-29 21:50:43 +02:00 committed by GitHub
commit 1d6a83c797
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,14 +136,21 @@ def check_and_get_bufsize(child):
return bufsize
# there's an issue with some boards' serial that causes lost characters.
LINE_EXCEEDED_BLACKLIST = {
# There is an issue with nrf52dk when the Virtual COM port is connected
# and sending more than 64 bytes over UART. If no terminal is connected
# to the Virtual COM and interfacing directly to the nrf52832 UART pins
# the issue is not present. See issue #10639 on GitHub.
'nrf52dk',
'z1',
}
def check_line_exceeded(child, longline):
if BOARD == 'nrf52dk':
# There is an issue with nrf52dk when the Virtual COM port is connected
# and sending more than 64 bytes over UART. If no terminal is connected
# to the Virtual COM and interfacing directly to the nrf52832 UART pins
# the issue is not present. See issue #10639 on GitHub.
print_error('test case "check_line_exceeded" broken for nrf52dk. SKIP')
if BOARD in LINE_EXCEEDED_BLACKLIST:
print_error('test case "check_line_exceeded" blacklisted, SKIP')
return
child.sendline(longline)