Mesa (main): radeonsi/tests: allow empty line and comments in csv files

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue May 10 09:41:14 UTC 2022


Module: Mesa
Branch: main
Commit: 2ca64c12141504c68d725d6ee48d1541101a122d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2ca64c12141504c68d725d6ee48d1541101a122d

Author: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Date:   Thu Apr 21 16:50:39 2022 +0200

radeonsi/tests: allow empty line and comments in csv files

This will help describe why tests are failing.

Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16347>

---

 src/gallium/drivers/radeonsi/ci/radeonsi-run-tests.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/gallium/drivers/radeonsi/ci/radeonsi-run-tests.py b/src/gallium/drivers/radeonsi/ci/radeonsi-run-tests.py
index d2d02d571aa..897d833baad 100755
--- a/src/gallium/drivers/radeonsi/ci/radeonsi-run-tests.py
+++ b/src/gallium/drivers/radeonsi/ci/radeonsi-run-tests.py
@@ -289,6 +289,9 @@ def parse_test_filters(include_tests):
         if os.path.exists(t):
             with open(t, "r") as file:
                 for row in csv.reader(file, delimiter=","):
+                    if not row or row[0][0] == '#':
+                        continue
+                    print(row)
                     cmd += ["-t", row[0]]
         else:
             cmd += ["-t", t]



More information about the mesa-commit mailing list