|
|
|
@ -115,7 +115,7 @@ def pexpect_drain(p):
@@ -115,7 +115,7 @@ def pexpect_drain(p):
|
|
|
|
|
except pexpect.TIMEOUT: |
|
|
|
|
pass |
|
|
|
|
|
|
|
|
|
def start_SIL(atype, valgrind=False, wipe=False, CLI=False, height=None): |
|
|
|
|
def start_SIL(atype, valgrind=False, wipe=False, height=None): |
|
|
|
|
'''launch a SIL instance''' |
|
|
|
|
cmd="" |
|
|
|
|
if valgrind and os.path.exists('/usr/bin/valgrind'): |
|
|
|
@ -123,8 +123,6 @@ def start_SIL(atype, valgrind=False, wipe=False, CLI=False, height=None):
@@ -123,8 +123,6 @@ def start_SIL(atype, valgrind=False, wipe=False, CLI=False, height=None):
|
|
|
|
|
cmd += reltopdir('tmp/%s.build/%s.elf' % (atype, atype)) |
|
|
|
|
if wipe: |
|
|
|
|
cmd += ' -w' |
|
|
|
|
if CLI: |
|
|
|
|
cmd += ' -s' |
|
|
|
|
if height is not None: |
|
|
|
|
cmd += ' -H %u' % height |
|
|
|
|
ret = pexpect.spawn(cmd, logfile=sys.stdout, timeout=5) |
|
|
|
|