Unity color resetting was fixed for Gitlab CI.

Based on escape codes: https://en.wikipedia.org/wiki/ANSI_escape_code#3-bit_and_4-bit
This commit is contained in:
Alex Overchenko
2022-02-16 14:56:00 +03:00
parent 8ba0138600
commit db3398a5dd
2 changed files with 5 additions and 5 deletions

View File

@@ -26,10 +26,10 @@ void UNITY_OUTPUT_CHAR(int);
struct UNITY_STORAGE_T Unity;
#ifdef UNITY_OUTPUT_COLOR
const char PROGMEM UnityStrOk[] = "\033[42mOK\033[00m";
const char PROGMEM UnityStrPass[] = "\033[42mPASS\033[00m";
const char PROGMEM UnityStrFail[] = "\033[41mFAIL\033[00m";
const char PROGMEM UnityStrIgnore[] = "\033[43mIGNORE\033[00m";
const char PROGMEM UnityStrOk[] = "\033[42mOK\033[0m";
const char PROGMEM UnityStrPass[] = "\033[42mPASS\033[0m";
const char PROGMEM UnityStrFail[] = "\033[41mFAIL\033[0m";
const char PROGMEM UnityStrIgnore[] = "\033[43mIGNORE\033[0m";
#else
const char PROGMEM UnityStrOk[] = "OK";
const char PROGMEM UnityStrPass[] = "PASS";