autotest: make log messages on failure clearer

This commit is contained in:
Andrew Tridgell 2011-11-14 11:26:34 +11:00
parent 8d7ed1400d
commit a30b0c221c
1 changed files with 5 additions and 0 deletions

View File

@ -245,15 +245,20 @@ def fly_ArduPlane(viewerip=None):
homeloc = current_location(mav) homeloc = current_location(mav)
print("Home location: %s" % homeloc) print("Home location: %s" % homeloc)
if not takeoff(mavproxy, mav): if not takeoff(mavproxy, mav):
print("Failed takeoff")
failed = True failed = True
if not fly_left_circuit(mavproxy, mav): if not fly_left_circuit(mavproxy, mav):
print("Failed left circuit")
failed = True failed = True
if not axial_left_roll(mavproxy, mav, 1): if not axial_left_roll(mavproxy, mav, 1):
print("Failed left roll")
failed = True failed = True
if not fly_RTL(mavproxy, mav): if not fly_RTL(mavproxy, mav):
print("Failed RTL")
failed = True failed = True
if not fly_mission(mavproxy, mav, os.path.join(testdir, "ap1.txt"), height_accuracy = 10, if not fly_mission(mavproxy, mav, os.path.join(testdir, "ap1.txt"), height_accuracy = 10,
target_altitude=homeloc.alt+100): target_altitude=homeloc.alt+100):
print("Failed mission")
failed = True failed = True
except pexpect.TIMEOUT, e: except pexpect.TIMEOUT, e:
failed = True failed = True