1
0
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:
Martine Lenders 2019-10-16 13:28:39 +02:00 committed by GitHub
commit eebf3709db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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))