Browse Source

autotest: correct time-spent-waiting-to-arm for zero case

zr-v5.1
Peter Barker 5 years ago committed by Peter Barker
parent
commit
ccff006517
  1. 6
      Tools/autotest/common.py

6
Tools/autotest/common.py

@ -6884,10 +6884,10 @@ switch value''' @@ -6884,10 +6884,10 @@ switch value'''
avg = None
else:
avg = self.total_waiting_to_arm_time/self.waiting_to_arm_count
self.progress("Spent %f seconds waiting to arm. count=%u avg=%f" %
self.progress("Spent %f seconds waiting to arm. count=%u avg=%s" %
(self.total_waiting_to_arm_time,
self.waiting_to_arm_count,
avg))
self.waiting_to_arm_count,
str(avg)))
self.show_test_timings()
if self.forced_post_test_sitl_reboots != 0:
print("Had to force-reset SITL %u times" %

Loading…
Cancel
Save