[test runner] Improve error messaging for memory metrics tests

This commit is contained in:
Mikhail Pozdnyakov
2019-10-21 15:32:50 +03:00
parent 61d1018087
commit bb0e5ffb2c
2 changed files with 10 additions and 15 deletions

View File

@@ -125,9 +125,7 @@ int runRenderTests(int argc, char** argv) {
color = "red";
stats.erroredTests++;
printf(ANSI_COLOR_RED "* errored %s" ANSI_COLOR_RESET "\n", id.c_str());
if (!metadata.errorMessage.empty()) {
printf(ANSI_COLOR_RED "* error: %s" ANSI_COLOR_RESET "\n", metadata.errorMessage.c_str());
}
printf(ANSI_COLOR_RED "* error: %s" ANSI_COLOR_RESET "\n", metadata.errorMessage.c_str());
} else {
status = "failed";
color = "red";