From: Wei Liu Date: Mon, 13 Jun 2016 14:30:10 +0000 (+0100) Subject: xtf-runner: sync all test results X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=63ad4321f6636882ffc3035b457a57294bf0c555;p=xtf.git xtf-runner: sync all test results Signed-off-by: Wei Liu Reviewed-by: Andrew Cooper --- diff --git a/xtf-runner b/xtf-runner index 50a5e96..c938f28 100755 --- a/xtf-runner +++ b/xtf-runner @@ -17,6 +17,9 @@ try: except ImportError: import simplejson as json +# All results of a test, keep in sync with C code report.h. +# Note that warning is not a result on its own. +all_results = ('SUCCESS', 'SKIP', 'ERROR', 'FAILURE') # All test categories and configurations all_categories = ("special", "functional", "xsa", "utility") @@ -161,7 +164,7 @@ def run_test(test): if not "Test result:" in test_result: return "ERROR" - for res in ("SUCCESS", "SKIP", "FAILURE"): + for res in all_results: if res in test_result: return res