autotest: use 'enter 3 times' method to get into CLI

this doesn't depend on build options
This commit is contained in:
Andrew Tridgell 2011-12-13 10:23:57 +11:00
parent da43b85422
commit 2c0e4c1c02
2 changed files with 3 additions and 2 deletions

View File

@ -41,6 +41,7 @@ def dump_logs(atype):
logfile = util.reltopdir('../buildlogs/%s.flashlog' % atype)
log = open(logfile, mode='w')
mavproxy = util.start_MAVProxy_SIL(atype, setup=True, logfile=log)
mavproxy.send('\n\n\n')
print("navigating menus")
mavproxy.expect(']')
mavproxy.send("logs\n")
@ -58,7 +59,7 @@ def dump_logs(atype):
for i in range(numlogs):
print("Dumping log %u (i=%u)" % (lognums[i], i))
mavproxy.send("dump %u\n" % lognums[i])
mavproxy.expect("logs enabled:", timeout=400)
mavproxy.expect("logs enabled:", timeout=120)
mavproxy.expect("Log]")
util.pexpect_close(mavproxy)
util.pexpect_close(sil)

View File

@ -141,7 +141,7 @@ def deltree(path):
def build_SIL(atype):
'''build desktop SIL'''
run_cmd("make -f ../libraries/Desktop/Makefile.desktop clean all",
run_cmd("make clean sitl",
dir=reltopdir(atype),
checkfail=True)
return True