diff options
Diffstat (limited to 'meta/lib/patchtest/selftest/selftest')
-rwxr-xr-x | meta/lib/patchtest/selftest/selftest | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/meta/lib/patchtest/selftest/selftest b/meta/lib/patchtest/selftest/selftest index 006d1badf8..6fad50ce61 100755 --- a/meta/lib/patchtest/selftest/selftest +++ b/meta/lib/patchtest/selftest/selftest | |||
@@ -18,14 +18,15 @@ parentdir = os.path.dirname(topdir) | |||
18 | # path to the repo root | 18 | # path to the repo root |
19 | repodir = os.path.dirname(os.path.dirname(parentdir)) | 19 | repodir = os.path.dirname(os.path.dirname(parentdir)) |
20 | 20 | ||
21 | def print_results(passcount, skipcount, failcount, xpasscount, xfailcount, errorcount): | 21 | def print_results(passcount, failcount, skipcount, xpasscount, xfailcount, xskipcount, errorcount): |
22 | total = passcount + skipcount + failcount + xpasscount + xfailcount + errorcount | 22 | total = passcount + skipcount + failcount + xpasscount + xfailcount + xskipcount + errorcount |
23 | print("============================================================================") | 23 | print("============================================================================") |
24 | print("Testsuite summary for %s" % os.path.basename(topdir)) | 24 | print("Testsuite summary for %s" % os.path.basename(topdir)) |
25 | print("============================================================================") | 25 | print("============================================================================") |
26 | print("# TOTAL: %s" % str(total)) | 26 | print("# TOTAL: %s" % str(total)) |
27 | print("# XPASS: %s" % str(xpasscount)) | 27 | print("# XPASS: %s" % str(xpasscount)) |
28 | print("# XFAIL: %s" % str(xfailcount)) | 28 | print("# XFAIL: %s" % str(xfailcount)) |
29 | print("# XSKIP: %s" % str(xskipcount)) | ||
29 | print("# PASS: %s" % str(passcount)) | 30 | print("# PASS: %s" % str(passcount)) |
30 | print("# FAIL: %s" % str(failcount)) | 31 | print("# FAIL: %s" % str(failcount)) |
31 | print("# SKIP: %s" % str(skipcount)) | 32 | print("# SKIP: %s" % str(skipcount)) |
@@ -48,6 +49,7 @@ if __name__ == '__main__': | |||
48 | skipcount = 0 | 49 | skipcount = 0 |
49 | xpasscount = 0 | 50 | xpasscount = 0 |
50 | xfailcount = 0 | 51 | xfailcount = 0 |
52 | xskipcount = 0 | ||
51 | errorcount = 0 | 53 | errorcount = 0 |
52 | 54 | ||
53 | results = None | 55 | results = None |
@@ -71,6 +73,9 @@ if __name__ == '__main__': | |||
71 | elif expected_result.upper() == "PASS" and result.upper() == "PASS": | 73 | elif expected_result.upper() == "PASS" and result.upper() == "PASS": |
72 | xpasscount = xpasscount + 1 | 74 | xpasscount = xpasscount + 1 |
73 | print("XPASS: %s (file: %s)" % (testid.strip("."), os.path.basename(patch))) | 75 | print("XPASS: %s (file: %s)" % (testid.strip("."), os.path.basename(patch))) |
76 | elif expected_result.upper() == "SKIP" and result.upper() == "SKIP": | ||
77 | xskipcount = xskipcount + 1 | ||
78 | print("XSKIP: %s (file: %s)" % (testid.strip("."), os.path.basename(patch))) | ||
74 | else: | 79 | else: |
75 | print("%s: %s (%s)" % (result.upper(), testid.strip("."), os.path.basename(patch))) | 80 | print("%s: %s (%s)" % (result.upper(), testid.strip("."), os.path.basename(patch))) |
76 | if result.upper() == "PASS": | 81 | if result.upper() == "PASS": |
@@ -86,4 +91,4 @@ if __name__ == '__main__': | |||
86 | else: | 91 | else: |
87 | print ("No test for=%s" % patch) | 92 | print ("No test for=%s" % patch) |
88 | 93 | ||
89 | print_results(passcount, skipcount, failcount, xpasscount, xfailcount, errorcount) | 94 | print_results(passcount, failcount, skipcount, xpasscount, xfailcount, xskipcount, errorcount) |