radeonsi/tests: allow empty line and comments in csv files
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Thu, 21 Apr 2022 14:50:39 +0000 (16:50 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 10 May 2022 09:21:45 +0000 (09:21 +0000)
This will help describe why tests are failing.

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

src/gallium/drivers/radeonsi/ci/radeonsi-run-tests.py

index d2d02d5..897d833 100755 (executable)
@@ -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]