validate: don't increase hard_timeout is if it's None

Some tests, like the media check ones, have None as hard_timeout.
This commit is contained in:
Guillaume Desmottes 2015-03-26 13:57:34 +01:00
parent daaa32676c
commit 9ad79ffcbc

View file

@ -308,7 +308,8 @@ class Test(Loggable):
self.proc_env['G_SLICE'] = 'always-malloc'
self.add_env_variable('G_SLICE', 'always-malloc')
self.hard_timeout *= VALGRIND_TIMEOUT_FACTOR
if self.hard_timeout is not None:
self.hard_timeout *= VALGRIND_TIMEOUT_FACTOR
self.timeout *= VALGRIND_TIMEOUT_FACTOR
def test_start(self, queue):