autotest: correct diagnostic string

that "f" in front of an f-string is important
This commit is contained in:
Peter Barker 2025-01-02 17:06:52 +11:00 committed by Peter Barker
parent 1bc4515a39
commit 58eb6367e9

View File

@ -5279,11 +5279,12 @@ class TestSuite(ABC):
): ):
'''returns a list of mission-item-ints from filepath''' '''returns a list of mission-item-ints from filepath'''
# self.progress("filepath: %s" % filepath) # self.progress("filepath: %s" % filepath)
self.progress("Loading {loaderclass.itemstype()} (%s)" % os.path.basename(filepath))
wploader = loaderclass( wploader = loaderclass(
target_system=target_system, target_system=target_system,
target_component=target_component 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) wploader.load(filepath)
return [self.wp_to_mission_item_int(x, wploader.mav_mission_type()) for x in wploader.wpoints] # noqa:502 return [self.wp_to_mission_item_int(x, wploader.mav_mission_type()) for x in wploader.wpoints] # noqa:502