From e568f74580b726771ca5023eb1dff03e21df2517 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 17 Jan 2020 13:15:11 +1100 Subject: [PATCH] autotest: correct string-vs-float issue in dataflashovermavlink test --- Tools/autotest/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/autotest/common.py b/Tools/autotest/common.py index a983c6ae0e..0276d234c9 100644 --- a/Tools/autotest/common.py +++ b/Tools/autotest/common.py @@ -3058,8 +3058,8 @@ class AutoTest(ABC): self.mavproxy.send('dataflash_logger status\n') # seen on autotest: Active Rate(3s):97.790kB/s Block:164 Missing:0 Fixed:0 Abandoned:0 self.mavproxy.expect("Active Rate\([0-9]s\):([0-9]+[.][0-9]+)") - rate = self.mavproxy.match.group(1) - self.progress("Rate: %f" % float(rate)) + rate = float(self.mavproxy.match.group(1)) + self.progress("Rate: %f" % rate) if rate < 50: raise NotAchievedException("Exceptionally low transfer rate") self.disarm_vehicle()