autotest: avoid using undefined fmt variable

This commit is contained in:
Peter Barker 2020-11-12 15:53:30 +11:00 committed by Peter Barker
parent a00243dc5a
commit 29b913cd41
1 changed files with 2 additions and 0 deletions

View File

@ -4461,6 +4461,8 @@ Also, ignores heartbeats not from our target system'''
return ((v, k))
def show_test_timings(self):
if len(self.test_timings.keys()) == 0:
return
longest = 0
for desc in self.test_timings.keys():
if len(desc) > longest: