Function zebra_test::command::check_failure_regexes
source ยท pub fn check_failure_regexes(
line: Result<String>,
failure_regexes: &RegexSet,
ignore_regexes: &RegexSet,
cmd: &str,
bypass_test_capture: bool,
) -> Result<String>
Expand description
Checks command output log line
from cmd
against a failure_regexes
regex set,
and returns an error if any regex matches. The line is skipped if it matches ignore_regexes
.
Passes through errors from the underlying reader.