summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2021-08-12 15:08:19 +0200
committerUrban Müller2021-08-12 15:08:19 +0200
commit7c4a1ff1b1f02f6ce0a3f2ee33580e1a8732b55f (patch)
tree6b0de577328e1d7721fc55f20f46042cb103ed62
parent087155dad0dd309dd3021244a23385635dae2682 (diff)
downloaditools-7c4a1ff1b1f02f6ce0a3f2ee33580e1a8732b55f.tar.gz
itools-7c4a1ff1b1f02f6ce0a3f2ee33580e1a8732b55f.tar.bz2
itools-7c4a1ff1b1f02f6ce0a3f2ee33580e1a8732b55f.zip
it::fatal should abort on okstatus=0 even when no report needed
-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)() : [];