poky/scripts/lib/resulttool
Alexis Lothoré 1eae53e277 scripts/resulttool: do not count newly passing tests as regressions
resulttool regression module simply compare a base test status to a target test
result status. This approach raises many false positives since all XXX -> PASS
transitions (XXX being any status different from PASS) are flagged as
regression.

- Do not list XXX -> PASS transitions in regression  report, instead count them
  and print a summary of "newly passing tests"
- If an inspected pair has only "newly passing tests", do not print detailed
  list and print it as "Improvement" instead of "Regression"

Updated output example looks like the following:
[...]
Improvement: oeselftest_fedora-37_qemux86-64_20230127010225
             oeselftest_ubuntu-22.04_qemux86-64_20230226120516
             (+1 test(s) passing)
[...]
Match:       oeselftest_almalinux-8.7_qemuarm64_20230127015830
             oeselftest_almalinux-8.7_qemuarm64_20230227015258
[...]
Regression:  oeselftest_almalinux-9.1_qemumips_20230127000217
             oeselftest_opensuseleap-15.4_qemumips_20230226130046
    ptestresult.glibc-user.debug/tst-read-chk-cancel: PASS -> None
    ptestresult.glibc-user.nptl/tst-mutexpi4: PASS -> FAIL
    ptestresult.glibc-user.nptl/tst-mutexpi5a: PASS -> FAIL
    Additionally, 44 previously failing test(s) is/are now passing

(From OE-Core rev: c335f96f687c73fde443ac330ca3e17113794d9e)

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-12 23:39:13 +00:00
..
template scripts/resulttool/report: Add total statistic to test result. 2019-11-14 13:20:59 +00:00
__init__.py
log.py resulttool/log: Add ability to dump ltp logs as well as ptest 2020-05-27 10:22:31 +01:00
manualexecution.py resulttool/manualexecution: Enable creation of test case configuration 2019-06-04 09:09:42 +01:00
merge.py resulttool/merge: Enable control TESTSERIES and extra configurations 2019-06-12 10:54:40 +01:00
regression.py scripts/resulttool: do not count newly passing tests as regressions 2023-03-12 23:39:13 +00:00
report.py resulttool/report: Remove leftover debugging 2020-05-27 10:22:31 +01:00
resultutils.py resulttool/log: Add ability to dump ltp logs as well as ptest 2020-05-27 10:22:31 +01:00
store.py resulttool/store.py: Enable add extra test environment data 2019-11-14 13:20:59 +00:00