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 7 8def _is_failure_output(self, output): 9 return ( 10 output.exit_code != 0 or 11 'FAILED!' in output.stdout 12 ) 13 14 15class OutProc(base.OutProc): 16 """Optimized for positive tests.""" 17OutProc._is_failure_output = _is_failure_output 18 19 20class PassOutProc(base.PassOutProc): 21 """Optimized for positive tests expected to PASS.""" 22PassOutProc._is_failure_output = _is_failure_output 23 24 25class NegOutProc(base.Negative, OutProc): 26 pass 27 28class NegPassOutProc(base.Negative, PassOutProc): 29 pass 30 31 32MOZILLA_PASS_DEFAULT = PassOutProc() 33MOZILLA_PASS_NEGATIVE = NegPassOutProc() 34