From 1a06494e65e41e69c7c48f403ca09974031d3d9a Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Mon, 17 Jun 2024 13:55:30 +0200 Subject: [PATCH] radeonsi/tests: clarify the output when results changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Print up to 10 results that are different from the baseline: 2 new results: * spec@!opengl 1.0@rasterpos,Crash * spec@glsl-es-3.00@execution@built-in-functions@vs-packhalf2x16,Fail Reviewed-by: Marek Olšák Part-of: --- .../drivers/radeonsi/ci/radeonsi-run-tests.py | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/radeonsi/ci/radeonsi-run-tests.py b/src/gallium/drivers/radeonsi/ci/radeonsi-run-tests.py index 580a02ecf6a..e51cd74a8d4 100755 --- a/src/gallium/drivers/radeonsi/ci/radeonsi-run-tests.py +++ b/src/gallium/drivers/radeonsi/ci/radeonsi-run-tests.py @@ -304,9 +304,20 @@ def run_cmd(args, verbosity): def verify_results(results): with open(results) as file: - if len(file.readlines()) == 0: + lines = file.readlines() + if len(lines) == 0: return True - print_red("New results (fails or pass). Check {}".format(results)) + print("{} new result{}:".format(len(lines), 's' if len(lines) > 1 else '')) + for i in range(min(10, len(lines))): + print(" * ", end='') + if "Pass" in lines[i]: + print_green(lines[i][:-1]) + else: + print_red(lines[i][:-1]) + if len(lines) > 10: + print_yellow("...") + print("Full results: {}".format(results)) + return False