mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
15 lines
286 B
Python
Executable File
15 lines
286 B
Python
Executable File
#!/usr/bin/python
|
|
import pexpect
|
|
import os
|
|
import subprocess
|
|
|
|
# testing hello world
|
|
|
|
child = pexpect.spawn ("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!")
|