mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
12 lines
267 B
Python
12 lines
267 B
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 ('Hello world!\r\n')
|
||
|
print("Test successful!")
|