summaryrefslogtreecommitdiffstats
path: root/meta/lib/patchtest/selftest/selftest
diff options
context:
space:
mode:
authorTrevor Gamblin <tgamblin@baylibre.com>2023-10-12 09:24:59 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-10-13 11:53:06 +0100
commitfd06e4f2664b69a2776cdc8188dba6e6e958d86a (patch)
tree2b26efe798c2169eeeea6e9c24ae5ac72d9fa9df /meta/lib/patchtest/selftest/selftest
parent2fdabc368a52a9bf60f76f33e92b94de843688a8 (diff)
downloadpoky-fd06e4f2664b69a2776cdc8188dba6e6e958d86a.tar.gz
patchtest: clean up test suite
Various tweaks to make the test suite cleaner and more efficient: - Replace use of "re" module with "pyparsing" in tests (but not base.py) - Make test_mbox_cve only check for CVE tags in the commit if the added patch has them - Make test_mbox_cve SKIP instead of PASS if there's no CVE tag - Simplify the bugzilla tag checking test now that pyparsing is used - Modify the selftest script to correctly parse the new result output (From OE-Core rev: 7a187c2475aa762e2bc830950f608143f2535a72) Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/patchtest/selftest/selftest')
-rwxr-xr-xmeta/lib/patchtest/selftest/selftest2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/patchtest/selftest/selftest b/meta/lib/patchtest/selftest/selftest
index d2b61e951a..f8985314f5 100755
--- a/meta/lib/patchtest/selftest/selftest
+++ b/meta/lib/patchtest/selftest/selftest
@@ -63,7 +63,7 @@ if __name__ == '__main__':
63 63
64 for resultline in results.splitlines(): 64 for resultline in results.splitlines():
65 if testid in resultline: 65 if testid in resultline:
66 result, _ = resultline.split(' ', 1) 66 result, _ = resultline.split(':', 1)
67 67
68 if expected_result.upper() == "FAIL" and result.upper() == "FAIL": 68 if expected_result.upper() == "FAIL" and result.upper() == "FAIL":
69 xfailcount = xfailcount + 1 69 xfailcount = xfailcount + 1