Home | History | Annotate | Download | only in testproc
      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 
      5 from . import base
      6 
      7 
      8 class LoadProc(base.TestProc):
      9   """First processor in the chain that passes all tests to the next processor.
     10   """
     11 
     12   def load_tests(self, tests):
     13     loaded = set()
     14     for test in tests:
     15       if test.procid in loaded:
     16         print 'Warning: %s already obtained' % test.procid
     17         continue
     18 
     19       loaded.add(test.procid)
     20       self._send_test(test)
     21 
     22   def next_test(self, test):
     23     assert False, 'Nothing can be connected to the LoadProc'
     24 
     25   def result_for(self, test, result):
     26     # Ignore all results.
     27     pass
     28