mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
416c048737
- Define test_utils_interactive_sync as DEFAULT_MODULE in Makefile.tests_common - For tests disabling autoinit, add test_utils_interactive_sync to main - Add DISABLE_MODULE += test_utils_interactive_sync for tests requiring sudo, `tests/shell`, `tests/minimal` and `tests/stdin` - Add shell_commands to tests/periph_wdt and tests/struct_tm_utility to pull `r` and `s` commands - Remove includes and usage in `tests/main.c` for tests that where already using test_utils_interactive_sync
17 lines
340 B
Python
Executable File
17 lines
340 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
import sys
|
|
import time
|
|
from testrunner import run
|
|
|
|
|
|
def testfunc(child):
|
|
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))
|