]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
scripts/resulttool: limit the number of changes displayed per test
authorAlexis Lothoré <alexis.lothore@bootlin.com>
Sun, 22 Oct 2023 17:49:35 +0000 (19:49 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 23 Oct 2023 09:49:17 +0000 (10:49 +0100)
commitcec118406f3ad81cb4709f6e6ae1cef65799658e
tree2e392b393264a5f8bf1ed924f74a5f17e7482fdd
parentb52a12e66d2f9ed0751b63cea01e96890da15998
scripts/resulttool: limit the number of changes displayed per test

Most of the changes list generated in regression reports fall in one
of the two following categories:
- there is only a few (<10) changes listed and the info is
  valuable/relevant
- the list is huge (> 100 ? 1000 ?) and basically tells us that the whole
  tests category suffers the same status (test missing, test failing, test
  skipped, etc)

Prevent those huge, worthless lists by limiting the output for each test
group:
- current default limit is arbitrarily set to 50
- limit can still be overriden with a new "-l"/"--limit" flag, either with
  custom value, or with 0 to print the whole lists of changes
- limit is applied per test family: currently it distinguishes only types
  of ptests, but it can be adapted to other kind of tests

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
scripts/lib/resulttool/regression.py