summaryrefslogtreecommitdiff
path: root/tests/igt.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/igt.py')
-rw-r--r--tests/igt.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/igt.py b/tests/igt.py
index d54bb65c5..aa9465b85 100644
--- a/tests/igt.py
+++ b/tests/igt.py
@@ -107,17 +107,15 @@ def listTests(listname):
lines = (line.rstrip() for line in f.readlines())
found_header = False
- progs = ""
for line in lines:
if found_header:
- progs = line.split(" ")
- break
+ return line.split(" ")
if "TESTLIST" in line:
found_header = True
- return progs
+ return []
tests = listTests("single-tests")
tests.extend(listTests("multi-tests"))