Fix ZM_TEST_LOG_DEBUG bug, remove redundant code

This commit is contained in:
Jerry Ma
2022-04-30 17:24:26 +08:00
committed by GitHub
parent d95a5131f6
commit f1c730962b

View File

@@ -88,9 +88,8 @@ $framework = new Framework($options);
$start = new OnStart();
$start->method = function () {
try {
Console::setLevel(ZM_TEST_LOG_DEBUG);
Console::setLevel(ZM_TEST_LOG_DEBUG ? 4 : 0);
$retcode = PHPUnit\TextUI\Command::main(false);
Console::setLevel(0);
} finally {
Console::setLevel(0);
ZMUtil::stop(($retcode ?? 1) !== 0);