aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--moonclient/moonclient/tests.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/moonclient/moonclient/tests.py b/moonclient/moonclient/tests.py
index dd0dd7de..a97ba61c 100644
--- a/moonclient/moonclient/tests.py
+++ b/moonclient/moonclient/tests.py
@@ -102,8 +102,12 @@ class TestsLaunch(Lister):
compare = self.__compare_results(self.__replace_var_in_str(test["result"]), result_str)
self.logfile.write("----->{} ({})\n\n".format(compare, self.__replace_var_in_str(test["result"])))
if error_str:
- compare = "\033[1m\033[31mFalse\033[m"
- overall_result = False
+ if compare:
+ compare = "\033[33mTrue\033[m"
+ overall_result = True
+ else:
+ compare = "\033[1m\033[31mFalse\033[m"
+ overall_result = False
else:
overall_result = overall_result and compare
if compare: