mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
tests: Rename virtTestUseTerminalColors to virTestUseTerminalColors.
This function doesn't follow our convention of naming functions.
This commit is contained in:
parent
d77e453a01
commit
c2f36506b7
@ -89,7 +89,7 @@ bool virTestOOMActive(void)
|
||||
return testOOMActive;
|
||||
}
|
||||
|
||||
static int virtTestUseTerminalColors(void)
|
||||
static int virTestUseTerminalColors(void)
|
||||
{
|
||||
return isatty(STDIN_FILENO);
|
||||
}
|
||||
@ -187,17 +187,17 @@ virTestRun(const char *title,
|
||||
|
||||
if (virTestGetVerbose()) {
|
||||
if (ret == 0)
|
||||
if (virtTestUseTerminalColors())
|
||||
if (virTestUseTerminalColors())
|
||||
fprintf(stderr, "\e[32mOK\e[0m\n"); /* green */
|
||||
else
|
||||
fprintf(stderr, "OK\n");
|
||||
else if (ret == EXIT_AM_SKIP)
|
||||
if (virtTestUseTerminalColors())
|
||||
if (virTestUseTerminalColors())
|
||||
fprintf(stderr, "\e[34m\e[1mSKIP\e[0m\n"); /* bold blue */
|
||||
else
|
||||
fprintf(stderr, "SKIP\n");
|
||||
else
|
||||
if (virtTestUseTerminalColors())
|
||||
if (virTestUseTerminalColors())
|
||||
fprintf(stderr, "\e[31m\e[1mFAILED\e[0m\n"); /* bold red */
|
||||
else
|
||||
fprintf(stderr, "FAILED\n");
|
||||
|
Loading…
Reference in New Issue
Block a user