aboutsummaryrefslogtreecommitdiffstats
path: root/moonclient
diff options
context:
space:
mode:
authorasteroide <thomas.duval@orange.com>2015-11-03 16:02:15 +0100
committerasteroide <thomas.duval@orange.com>2015-11-03 16:02:15 +0100
commit74a2432b3ee42ad82f95c5f966c4a384ca473d28 (patch)
tree0625dc852877863860ec63143c8365a5d675bbc8 /moonclient
parent5e4a20a8190e84723f7aa6c730c00c6b488504eb (diff)
Add a overall result for test groups.
Change-Id: I462de32b4c5ade21e336b1e9aa0bf825c5bf3b44
Diffstat (limited to 'moonclient')
-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: