From 6843d0e6288751fdcbfa6203700444eb87faf6b7 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 13 Feb 2020 14:52:51 +1100 Subject: [PATCH] autotest: improve debug on parameter download failure --- Tools/autotest/common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tools/autotest/common.py b/Tools/autotest/common.py index eb927016af..dd05081d29 100644 --- a/Tools/autotest/common.py +++ b/Tools/autotest/common.py @@ -4141,7 +4141,8 @@ switch value''' while True: now = self.get_sim_time_cached() if now - tstart > 10: - raise AutoTestTimeoutException("Failed to download parameters") + raise AutoTestTimeoutException("Failed to download parameters (have %s/%s)" % + (str(count), str(expected_count))) m = self.mav.recv_match(type='PARAM_VALUE', blocking=True, timeout=1) if m is None: raise AutoTestTimeoutException("tardy PARAM_VALUE (have %s/%s)" % (