]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
scripts/resulttool: rearrange regressions report order
authorAlexis Lothoré <alexis.lothore@bootlin.com>
Sun, 22 Oct 2023 17:49:36 +0000 (19:49 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 23 Oct 2023 09:49:17 +0000 (10:49 +0100)
Regressions reports currently reports matching pairs and improved pairs
first, then regressions.

Change order to print regressions first, which is the most valuable info in
the report, and then print improvements and matches at the bottom.

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

index d98504f4ced8398be364c442cf10a8d95d49fd4b..560d102e172ce29d0f33a728b1c9979c67c690c2 100644 (file)
@@ -80,6 +80,9 @@ STATUS_STRINGS = {
 
 REGRESSIONS_DISPLAY_LIMIT=50
 
+MISSING_TESTS_BANNER =   "-------------------------- Missing tests --------------------------"
+ADDITIONAL_DATA_BANNER = "--------------------- Matches and improvements --------------------"
+
 def test_has_at_least_one_matching_tag(test, tag_list):
     return "oetags" in test and any(oetag in tag_list for oetag in test["oetags"])
 
@@ -312,10 +315,11 @@ def regression_common(args, logger, base_results, target_results):
                         regressions.append(resstr)
         else:
             notfound.append("%s not found in target" % a)
-    print("\n".join(sorted(matches)))
-    print("\n")
     print("\n".join(sorted(regressions)))
+    print("\n" + MISSING_TESTS_BANNER + "\n")
     print("\n".join(sorted(notfound)))
+    print("\n" + ADDITIONAL_DATA_BANNER + "\n")
+    print("\n".join(sorted(matches)))
     return 0
 
 def regression_git(args, logger):