mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
a20088f6e8
* fixed thread_getlastpid() * enable interrupts again in thread_sleep() to avoid getting stuck w/ disabled interrupts [cpu lpc2387] * added hwtimer as dependency for MCI driver [project test_*] * fixed some expect scripts
18 lines
377 B
Python
Executable File
18 lines
377 B
Python
Executable File
#!/usr/bin/python
|
|
|
|
import pexpect
|
|
import os
|
|
import subprocess
|
|
|
|
child = pexpect.spawn ("board/msba2/tools/bin/pseudoterm %s" % os.environ["PORT"])
|
|
|
|
null = open('/dev/null', 'wb')
|
|
subprocess.call(['jam', 'reset'], stdout=null)
|
|
|
|
child.expect ('[OK].\r\n');
|
|
child.expect ('callback1\r\n');
|
|
child.expect ('callback3\r\n');
|
|
child.expect ('callback2\r\n');
|
|
print("Test successful!")
|
|
|