From 58eb6367e9813b67e5d89e2d20cab63cb77b7840 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 2 Jan 2025 17:06:52 +1100 Subject: [PATCH] autotest: correct diagnostic string that "f" in front of an f-string is important --- Tools/autotest/vehicle_test_suite.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tools/autotest/vehicle_test_suite.py b/Tools/autotest/vehicle_test_suite.py index 978483c70e..d77e00ec0b 100644 --- a/Tools/autotest/vehicle_test_suite.py +++ b/Tools/autotest/vehicle_test_suite.py @@ -5279,11 +5279,12 @@ class TestSuite(ABC): ): '''returns a list of mission-item-ints from filepath''' # self.progress("filepath: %s" % filepath) - self.progress("Loading {loaderclass.itemstype()} (%s)" % os.path.basename(filepath)) wploader = loaderclass( target_system=target_system, target_component=target_component ) + itemstype = mavutil.mavlink.enums["MAV_MISSION_TYPE"][wploader.mav_mission_type()] + self.progress(f"Loading {itemstype} ({os.path.basename(filepath)}") wploader.load(filepath) return [self.wp_to_mission_item_int(x, wploader.mav_mission_type()) for x in wploader.wpoints] # noqa:502