diff --git a/tests/nordic_softdevice/tests/01-run.py b/tests/nordic_softdevice/tests/01-run.py index 7329c74091..f7159611a3 100755 --- a/tests/nordic_softdevice/tests/01-run.py +++ b/tests/nordic_softdevice/tests/01-run.py @@ -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))