]> xenbits.xensource.com Git - people/liuw/xtf.git/commitdiff
xtf-runner: sync all test results
authorWei Liu <wei.liu2@citrix.com>
Mon, 13 Jun 2016 14:30:10 +0000 (15:30 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 22 Jul 2016 10:06:53 +0000 (11:06 +0100)
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xtf-runner

index 50a5e96625157935b5d3061529b0f8c7444e0fa9..c938f287be449eb44d65ba76f70dce9fbe3abf39 100755 (executable)
@@ -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