Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unity color resetting was fixed for Gitlab CI #597

Merged
merged 1 commit into from
Feb 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/UnityConfigurationGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ TEST_PRINTF("Pointer %p\n", &a);
TEST_PRINTF("Character %c\n", 'F');
TEST_PRINTF("String %s\n", "My string");
TEST_PRINTF("Percent %%\n");
TEST_PRINTF("Color Red \033[41mFAIL\033[00m\n");
TEST_PRINTF("Color Red \033[41mFAIL\033[0m\n");
TEST_PRINTF("\n");
TEST_PRINTF("Multiple (%d) (%i) (%u) (%x)\n", -100, 0, 200, 0x12345);
```
Expand Down
8 changes: 4 additions & 4 deletions src/unity.c
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down