From 7c4a1ff1b1f02f6ce0a3f2ee33580e1a8732b55f Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 12 Aug 2021 15:08:19 +0200 Subject: it::fatal should abort on okstatus=0 even when no report needed --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/it.class b/it.class index 493a85f..8b7860b 100644 --- a/it.class +++ b/it.class @@ -208,7 +208,7 @@ static function error($p = array(), $extra = null) $failcount = $okstatus ? 0 : (int)@file_get_contents($okfn) + 1; # NOPHPLINT file_put_contents($okfn, "$failcount\n"); # NOPHPLINT if ($failcount != $p['failcount'] && $failcount != $p['failcount'] * 2) - return; + return $p['fatal'] && !$okstatus ? self::_exit($p) : null; # nothing to report } $context = is_callable(self::$error_context) ? (self::$error_context)() : []; -- cgit v1.2.3