Skip to content

Commit

Permalink
tests: Adapt tests to iface name
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrolanzieri committed Oct 11, 2019
1 parent 43f8fd9 commit ab85840
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/driver_nrfmin/tests/01-run.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
def testfunc(child):
child.expect("All up, running the shell now")
child.sendline("ifconfig")
child.expect(r"Iface\s+(\d+)\s+HWaddr:")
child.expect(r"Iface\s+([a-zA-Z0-9_-]+)\s+HWaddr:")


if __name__ == "__main__":
Expand Down
4 changes: 2 additions & 2 deletions tests/gnrc_ipv6_ext_frag/tests/01-run.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def test_ipv6_ext_frag_send_full_pktbuf(child, s, iface, ll_dst):

def _fwd_setup(child, ll_dst, g_src, g_dst):
# check if interface is configured properly
child.sendline("ifconfig 7")
child.sendline("ifconfig if7")
child.expect(r"MTU:(\d+)")
mtu = int(child.match.group(1))
# configure routes
Expand All @@ -259,7 +259,7 @@ def _fwd_setup(child, ll_dst, g_src, g_dst):
child.sendline("nib neigh")
child.expect(r"fe80::1 dev #7 lladdr\s+-")
# get TAP MAC address
child.sendline("ifconfig 6")
child.sendline("ifconfig if6")
child.expect("HWaddr: ([0-9A-F:]+)")
hwaddr = child.match.group(1)
# consume MTU for later calls of `ifconfig 7`
Expand Down
2 changes: 1 addition & 1 deletion tests/gnrc_rpl_srh/tests/01-run.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def unregister(child):

def get_first_interface(child):
child.sendline("ifconfig")
child.expect(r"Iface\s+(\d+)")
child.expect(r"Iface\s+([a-zA-Z0-9_-]+)")
return int(child.match.group(1))


Expand Down
2 changes: 1 addition & 1 deletion tests/nordic_softdevice/tests/01-run.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
def testfunc(child):
child.expect("All up, running the shell now")
child.sendline("ifconfig")
child.expect(r"Iface\s+(\d+)\s+HWaddr:")
child.expect(r"Iface\s+([a-zA-Z0-9_-]+)\s+HWaddr:")


if __name__ == "__main__":
Expand Down

0 comments on commit ab85840

Please sign in to comment.