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_ci 81cb0ef41Sopenharmony_ciclass OutProc(base.ExpectedOutProc): 91cb0ef41Sopenharmony_ci def _is_failure_output(self, output): 101cb0ef41Sopenharmony_ci if output.exit_code != 0: 111cb0ef41Sopenharmony_ci return True 121cb0ef41Sopenharmony_ci return super(OutProc, self)._is_failure_output(output) 131cb0ef41Sopenharmony_ci 141cb0ef41Sopenharmony_ci def _ignore_expected_line(self, line): 151cb0ef41Sopenharmony_ci return ( 161cb0ef41Sopenharmony_ci line.startswith('#') or 171cb0ef41Sopenharmony_ci super(OutProc, self)._ignore_expected_line(line) 181cb0ef41Sopenharmony_ci ) 19