1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/projects/test_swtimer_basic/tests/test_swtimer.py

16 lines
320 B
Python
Raw Normal View History

2010-10-26 16:51:28 +02:00
#!/usr/bin/python
import pexpect
import os
import subprocess
2010-10-26 17:14:55 +02:00
child = pexpect.spawn ("pseudoterm %s" % os.environ["PORT"])
2010-10-26 16:51:28 +02:00
null = open('/dev/null', 'wb')
subprocess.call(['jam', 'reset'], stdout=null)
child.expect ('callback\r\n');
child.expect ('wakeup\r\n');
child.expect ('message\r\n');
print("Test successful!")