From a30b0c221cb65aa313fcb9afe3de28525295043b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 14 Nov 2011 11:26:34 +1100 Subject: [PATCH] autotest: make log messages on failure clearer --- Tools/autotest/arduplane.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Tools/autotest/arduplane.py b/Tools/autotest/arduplane.py index 53a4a5f0fb..7d2477e037 100644 --- a/Tools/autotest/arduplane.py +++ b/Tools/autotest/arduplane.py @@ -245,15 +245,20 @@ def fly_ArduPlane(viewerip=None): homeloc = current_location(mav) print("Home location: %s" % homeloc) if not takeoff(mavproxy, mav): + print("Failed takeoff") failed = True if not fly_left_circuit(mavproxy, mav): + print("Failed left circuit") failed = True if not axial_left_roll(mavproxy, mav, 1): + print("Failed left roll") failed = True if not fly_RTL(mavproxy, mav): + print("Failed RTL") failed = True if not fly_mission(mavproxy, mav, os.path.join(testdir, "ap1.txt"), height_accuracy = 10, target_altitude=homeloc.alt+100): + print("Failed mission") failed = True except pexpect.TIMEOUT, e: failed = True