Merge pull request #2695 from SBird1337/hydra/better-output

Improve Hydra output
This commit is contained in:
Martin Griffin 2023-02-16 14:42:51 +00:00 committed by GitHub
commit 6b08120d5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -187,7 +187,17 @@ void CB2_TestRunner(void)
switch (gTestRunnerState.result)
{
case TEST_RESULT_FAIL: result = "FAIL"; break;
case TEST_RESULT_FAIL:
if (gTestRunnerState.expectedResult == TEST_RESULT_FAIL)
{
result = "KNOWN_FAILING";
color = "\e[33m";
}
else
{
result = "FAIL";
}
break;
case TEST_RESULT_PASS: result = "PASS"; break;
case TEST_RESULT_SKIP: result = "SKIP"; break;
case TEST_RESULT_INVALID: result = "INVALID"; break;