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@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16347>
This commit is contained in:
Pierre-Eric Pelloux-Prayer
2022-04-21 16:50:39 +02:00
committed by Marge Bot
parent 1c3e584dfa
commit 2ca64c1214

View File

@@ -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]