[PATCH v2 10/19] tests: Rename virtTestUseTerminalColors to virTestUseTerminalColors.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This function doesn't follow our convention of naming functions.
---
 tests/testutils.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/testutils.c b/tests/testutils.c
index ee13ab1..a8cb2f6 100644
--- a/tests/testutils.c
+++ b/tests/testutils.c
@@ -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");
-- 
2.5.5

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]