mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
autotest: use 'enter 3 times' method to get into CLI
this doesn't depend on build options
This commit is contained in:
parent
0e75b3b140
commit
f5a54f3da8
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user