1# Copyright 2018 the V8 project authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5from . import base 6 7from testrunner.local import statusfile 8from testrunner.outproc import base as outproc 9 10class ExpectationProc(base.TestProcProducer): 11 """Test processor passing tests and results through and forgiving timeouts.""" 12 def __init__(self): 13 super(ExpectationProc, self).__init__('no-timeout') 14 15 def _next_test(self, test): 16 subtest = self._create_subtest(test, 'no_timeout') 17 subtest.allow_timeouts() 18 subtest.allow_pass() 19 return self._send_test(subtest) 20 21 def _result_for(self, test, subtest, result): 22 self._send_result(test, result) 23