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

15 lines
286 B
Python
Raw Normal View History

2010-09-28 17:24:53 +02:00
#!/usr/bin/python
import pexpect
import os
import subprocess
2010-10-01 16:15:27 +02:00
# testing hello world
2010-09-28 17:24:53 +02:00
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!")