1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

tests/gnrc_netif: fix test script for empty payload

With the rework of `gnrc_pktdump` it does not try to print packets with
empty payload anymore. This needs to be reflected in the test script.
This commit is contained in:
Martine S. Lenders 2020-05-06 10:46:59 +02:00
parent a349748354
commit 8ff77f6444
No known key found for this signature in database
GPG Key ID: CCD317364F63286F

View File

@ -80,7 +80,7 @@ def testfunc(child):
child.expect("pktdump dumping Ethernet packet with empty payload")
child.expect("PKTDUMP: data received:")
child.expect(r"~~ SNIP 0 - size: 0 byte, type: NETTYPE_UNDEF \(0\)")
child.expect(r"00000000~~ SNIP 1 - size: \d+ byte, type: NETTYPE_NETIF \(-1\)")
child.expect(r"~~ SNIP 1 - size: \d+ byte, type: NETTYPE_NETIF \(-1\)")
child.expect(r"if_pid: (\d+) rssi: -?\d+ lqi: \d+")
assert 0 < int(child.match.group(1))
child.expect("flags: 0x0")
@ -91,7 +91,7 @@ def testfunc(child):
child.expect(r"pktdump dumping IEEE 802\.15\.4 packet with empty payload")
child.expect("PKTDUMP: data received:")
child.expect(r"~~ SNIP 0 - size: 0 byte, type: NETTYPE_UNDEF \(0\)")
child.expect(r"00000000~~ SNIP 1 - size: \d+ byte, type: NETTYPE_NETIF \(-1\)")
child.expect(r"~~ SNIP 1 - size: \d+ byte, type: NETTYPE_NETIF \(-1\)")
child.expect(r"if_pid: (\d+) rssi: -?\d+ lqi: \d+")
assert 0 < int(child.match.group(1))
child.expect("flags: 0x0")