autotest: correct places using print rather than progress

This commit is contained in:
Peter Barker 2024-06-28 12:09:40 +10:00 committed by Peter Barker
parent 4ed1b6b357
commit 98068e481e
2 changed files with 5 additions and 5 deletions

View File

@ -3952,11 +3952,11 @@ Brakes have negligible effect (with=%0.2fm without=%0.2fm delta=%0.2fm)
continue
t = m.get_type()
if t == "POSITION_TARGET_GLOBAL_INT":
print("Target: (%s)" % str(m))
self.progress("Target: (%s)" % str(m))
elif t == "GLOBAL_POSITION_INT":
print("Position: (%s)" % str(m))
self.progress("Position: (%s)" % str(m))
elif t == "FENCE_STATUS":
print("Fence: %s" % str(m))
self.progress("Fence: %s" % str(m))
if m.breach_status != 0:
seen_fence_breach = True
self.progress("Fence breach detected!")

View File

@ -5016,7 +5016,7 @@ class TestSuite(ABC):
def mission_from_filepath(self, filepath, target_system=1, target_component=1):
'''returns a list of mission-item-ints from filepath'''
print("filepath: %s" % filepath)
self.progress("filepath: %s" % filepath)
self.progress("Loading mission (%s)" % os.path.basename(filepath))
wploader = mavwp.MAVWPLoader(
target_system=target_system,
@ -5809,7 +5809,7 @@ class TestSuite(ABC):
self.set_output_to_trim(self.get_stick_arming_channel())
self.progress("Arm in %ss" % tdelta) # TODO check arming time
return
print("Not armed after %f seconds" % (tdelta))
self.progress("Not armed after %f seconds" % (tdelta))
if tdelta > timeout:
break
self.set_output_to_trim(self.get_stick_arming_channel())