mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-24 05:53:49 +01:00
Merge pull request #12465 from aabadie/pr/tests/nordic_softdevice
tests/nordic_softdevice: cleanup test script and fix test
This commit is contained in:
commit
eebf3709db
@ -1,14 +1,17 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import sys
|
||||
import time
|
||||
from testrunner import run
|
||||
|
||||
|
||||
def testfunc(child):
|
||||
child.expect("All up, running the shell now")
|
||||
child.expect_exact("All up, running the shell now")
|
||||
child.expect_exact(">")
|
||||
time.sleep(1) # Wait 1s to let some time for the interface to be fully ready
|
||||
child.sendline("ifconfig")
|
||||
child.expect(r"Iface\s+(\d+)\s+HWaddr:")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(run(testfunc, timeout=1, echo=False))
|
||||
sys.exit(run(testfunc))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user