11cb0ef41Sopenharmony_ci# Copyright 2018 the V8 project authors. All rights reserved. 21cb0ef41Sopenharmony_ci# Use of this source code is governed by a BSD-style license that can be 31cb0ef41Sopenharmony_ci# found in the LICENSE file. 41cb0ef41Sopenharmony_ci 51cb0ef41Sopenharmony_cifrom . import base 61cb0ef41Sopenharmony_ci 71cb0ef41Sopenharmony_cifrom testrunner.local import statusfile 81cb0ef41Sopenharmony_cifrom testrunner.outproc import base as outproc 91cb0ef41Sopenharmony_ci 101cb0ef41Sopenharmony_ciclass ExpectationProc(base.TestProcProducer): 111cb0ef41Sopenharmony_ci """Test processor passing tests and results through and forgiving timeouts.""" 121cb0ef41Sopenharmony_ci def __init__(self): 131cb0ef41Sopenharmony_ci super(ExpectationProc, self).__init__('no-timeout') 141cb0ef41Sopenharmony_ci 151cb0ef41Sopenharmony_ci def _next_test(self, test): 161cb0ef41Sopenharmony_ci subtest = self._create_subtest(test, 'no_timeout') 171cb0ef41Sopenharmony_ci subtest.allow_timeouts() 181cb0ef41Sopenharmony_ci subtest.allow_pass() 191cb0ef41Sopenharmony_ci return self._send_test(subtest) 201cb0ef41Sopenharmony_ci 211cb0ef41Sopenharmony_ci def _result_for(self, test, subtest, result): 221cb0ef41Sopenharmony_ci self._send_result(test, result) 23