[test, output] display KNOWN_FAILING in yellow

This commit is contained in:
sbird 2023-02-08 17:06:44 +01:00
parent 6b0b427d93
commit 0d78b29902

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;