提交 d720b2d8 编写于 作者: R Rudá Moura

Merge pull request #527 from lmr/fortify-early-state

avocado.runner: Fortify early_state.get(timeout)
......@@ -132,7 +132,8 @@ class TestRunner(object):
# At this point, the test is already initialized and we know
# for sure if there's a timeout set.
timeout = early_state['params'].get('timeout', self.DEFAULT_TIMEOUT)
timeout = (early_state.get('params', {}).get('timeout') or
self.DEFAULT_TIMEOUT)
time_deadline = time_started + timeout
ctrl_c_count = 0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册