提交 43f7138f 编写于 作者: C Cleber Rosa

avocado/runner.py: remove unnecessary ctrl_c variable

The assignment of `ctrl_c` is immediately followed by a break statement,
so there's no need to keep track of that event in a variable.
Signed-off-by: NCleber Rosa <crosa@redhat.com>
上级 38ec227c
......@@ -228,14 +228,10 @@ class TestRunner(object):
self.result.start_tests()
q = queues.SimpleQueue()
ctrl_c = False
for test_template in test_suite:
for test_factory in mux.itertests(test_template):
if not self._run_test(test_factory, q, failures):
ctrl_c = True
break
if ctrl_c:
break
runtime.CURRENT_TEST = None
self.result.end_tests()
if self.job.sysinfo is not None:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册