Browse Source

Tests: PityTest - Exit status is green if 0, otherwise red

LIB-11
heck 4 years ago
parent
commit
5bd3c262bb
  1. 8
      test/pitytest11/src/PityUnit.hxx

8
test/pitytest11/src/PityUnit.hxx

@ -376,8 +376,14 @@ namespace pEp {
int status;
pid_t pid;
while ((pid = wait(&status)) > 0) {
std::string color;
if(status == 0) {
color ="\033[1m\033[32m"; // Green
} else {
color ="\033[1m\033[31m"; // Red
}
logH3(
"\033[1m\033[31mPROCESS [ " + std::to_string((int)pid) +
color + "PROCESS [ " + std::to_string((int)pid) +
" ] EXITED with status code: " + std::to_string(status) +
Utils::to_termcol(_termColor()));
}

Loading…
Cancel
Save