diff --git a/tests/gnrc_netif/tests/01-run.py b/tests/gnrc_netif/tests/01-run.py index 7259c3fb89..2a1aa3faca 100755 --- a/tests/gnrc_netif/tests/01-run.py +++ b/tests/gnrc_netif/tests/01-run.py @@ -81,7 +81,8 @@ def testfunc(child): 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"if_pid: \d+ rssi: -?\d+ lqi: \d+") + child.expect(r"if_pid: (\d+) rssi: -?\d+ lqi: \d+") + assert 0 < int(child.match.group(1)) child.expect("flags: 0x0") child.expect("src_l2addr: 3E:E6:B5:22:FD:0B") child.expect("dst_l2addr: 3E:E6:B5:22:FD:0A") @@ -91,7 +92,8 @@ def testfunc(child): 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"if_pid: \d+ rssi: -?\d+ lqi: \d+") + child.expect(r"if_pid: (\d+) rssi: -?\d+ lqi: \d+") + assert 0 < int(child.match.group(1)) child.expect("flags: 0x0") child.expect("src_l2addr: 3E:E6:B5:0F:19:22:FD:0B") child.expect("dst_l2addr: 3E:E6:B5:0F:19:22:FD:0A") @@ -102,7 +104,8 @@ def testfunc(child): child.expect(r"~~ SNIP 0 - size: 4 byte, type: NETTYPE_UNDEF \(0\)") child.expect("00000000 12 34 45 56") child.expect(r"~~ SNIP 1 - size: \d+ byte, type: NETTYPE_NETIF \(-1\)") - child.expect(r"if_pid: \d+ rssi: -?\d+ lqi: \d+") + child.expect(r"if_pid: (\d+) rssi: -?\d+ lqi: \d+") + assert 0 < int(child.match.group(1)) child.expect("flags: 0x0") child.expect("src_l2addr: 3E:E6:B5:22:FD:0B") child.expect("dst_l2addr: 3E:E6:B5:22:FD:0A") @@ -113,7 +116,8 @@ def testfunc(child): child.expect(r"~~ SNIP 0 - size: 4 byte, type: NETTYPE_UNDEF \(0\)") child.expect("00000000 12 34 45 56") child.expect(r"~~ SNIP 1 - size: \d+ byte, type: NETTYPE_NETIF \(-1\)") - child.expect(r"if_pid: \d+ rssi: -?\d+ lqi: \d+") + child.expect(r"if_pid: (\d+) rssi: -?\d+ lqi: \d+") + assert 0 < int(child.match.group(1)) child.expect("flags: 0x0") child.expect("src_l2addr: 3E:E6:B5:0F:19:22:FD:0B") child.expect("dst_l2addr: 3E:E6:B5:0F:19:22:FD:0A") @@ -130,7 +134,8 @@ def testfunc(child): child.expect("source address: fe80::3fe6:b5ff:fe22:fd0a") child.expect("destination address: fe80::3fe6:b5ff:fe22:fd0b") child.expect(r"~~ SNIP 1 - size: \d+ byte, type: NETTYPE_NETIF \(-1\)") - child.expect(r"if_pid: \d+ rssi: -?\d+ lqi: \d+") + child.expect(r"if_pid: (\d+) rssi: -?\d+ lqi: \d+") + assert 0 < int(child.match.group(1)) child.expect("flags: 0x0") child.expect("src_l2addr: 3E:E6:B5:22:FD:0B") child.expect("dst_l2addr: 3E:E6:B5:22:FD:0A")