Skip to content

Commit 7e1174a

Browse files
Phencysdsilhavy
authored andcommitted
Quality of life: add pass/warn/fail symbol on each test line
1 parent 75fabed commit 7e1174a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Utils/moduleLogger.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,10 @@ public function getHook()
139139
public function test($spec, $section, $test, $check, $fail_type, $msg_succ, $msg_fail)
140140
{
141141
if ($check) {
142-
$this->addTestResult($spec, $section, $test, $msg_succ, "PASS");
142+
$this->addTestResult($spec, $section, $test, "" . $msg_succ, "PASS");
143143
return true;
144144
} else {
145-
$this->addTestResult($spec, $section, $test, $msg_fail, $fail_type);
145+
$this->addTestResult($spec, $section, $test, ($fail_type == "WARN" ? "! " : "") . $msg_fail, $fail_type);
146146
return false;
147147
}
148148
}

0 commit comments

Comments
 (0)