summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
Diffstat (limited to 'it.class')
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
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)() : [];