2018-01-05 13:34:17 +00:00
|
|
|
# Copyright 2018 the V8 project authors. All rights reserved.
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
|
|
|
from . import base
|
|
|
|
|
|
|
|
|
|
|
|
class LoadProc(base.TestProc):
|
2018-01-09 13:56:18 +00:00
|
|
|
"""First processor in the chain that passes all tests to the next processor.
|
|
|
|
"""
|
|
|
|
|
2018-01-05 13:34:17 +00:00
|
|
|
def load_tests(self, tests):
|
|
|
|
loaded = set()
|
|
|
|
for test in tests:
|
|
|
|
if test.procid in loaded:
|
|
|
|
print 'Warning: %s already obtained' % test.procid
|
|
|
|
continue
|
|
|
|
|
|
|
|
loaded.add(test.procid)
|
|
|
|
self._send_test(test)
|
|
|
|
|
2018-01-09 13:56:18 +00:00
|
|
|
def next_test(self, test):
|
|
|
|
assert False, 'Nothing can be connected to the LoadProc'
|
|
|
|
|
2018-01-05 13:34:17 +00:00
|
|
|
def result_for(self, test, result, is_last):
|
2018-01-09 13:56:18 +00:00
|
|
|
# Ignore all results.
|
2018-01-05 13:34:17 +00:00
|
|
|
pass
|