diff options
author | Ruan HE <ruan.he@orange.com> | 2015-11-03 15:10:16 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2015-11-03 15:10:16 +0000 |
commit | 725f5feb35585a8956832aadf9b2dd9df098eb51 (patch) | |
tree | 7cfa74c75ce48b050478b4f33a32cdb963ce4350 | |
parent | a008dce1a60f8be6135595c7c81c77ce1809c0d1 (diff) | |
parent | 74a2432b3ee42ad82f95c5f966c4a384ca473d28 (diff) |
Merge "Add a overall result for test groups."
-rw-r--r-- | moonclient/moonclient/tests.py | 8 |
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: |