Skip to content

Commit

Permalink
autotest: correct diagnostic string
Browse files Browse the repository at this point in the history
that "f" in front of an f-string is important
  • Loading branch information
peterbarker committed Jan 3, 2025
1 parent 1bc4515 commit 58eb636
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Tools/autotest/vehicle_test_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -5279,11 +5279,12 @@ def mission_item_protocol_items_from_filepath(self,
):
'''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

Expand Down

0 comments on commit 58eb636

Please sign in to comment.