autotest: increase timeout while under Valgrind

This commit is contained in:
Peter Barker 2022-02-09 16:07:48 +11:00 committed by Peter Barker
parent e3631aca91
commit a7d3324759

View File

@ -3049,7 +3049,10 @@ class AutoTest(ABC):
self.last_sim_time_cached = ret
self.last_sim_time_cached_wallclock = time.time()
else:
if time.time() - self.last_sim_time_cached_wallclock > 30:
timeout = 30
if self.valgrind:
timeout *= 10
if time.time() - self.last_sim_time_cached_wallclock > timeout:
raise AutoTestTimeoutException("sim_time_cached is not updating!")
return ret