autotest: augment delay_sim_time debug

This commit is contained in:
Peter Barker 2021-03-20 12:12:50 +11:00 committed by Peter Barker
parent afde83d2f9
commit 6f2de67ead

View File

@ -4682,8 +4682,8 @@ class AutoTest(ABC):
tstart = self.get_sim_time()
tnow = tstart
r = "Delaying %f seconds"
if reason is None:
r += "for %s" % reason
if reason is not None:
r += " for %s" % reason
self.progress(r % (seconds_to_wait,))
while tstart + seconds_to_wait > tnow:
tnow = self.get_sim_time()