[Piglit] [Patch v2 2/8] igt.py: Change an empty string to a list

Dylan Baker baker.dylan.c at gmail.com
Mon Jan 26 11:28:09 PST 2015


Currently there is a function that in some cases could return '', but
the output is assumed to be a list. This patch ensures that it always
returns a list.

Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
 tests/igt.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/igt.py b/tests/igt.py
index aa635c7..6539308 100644
--- a/tests/igt.py
+++ b/tests/igt.py
@@ -112,7 +112,7 @@ def listTests(listname):
         lines = (line.rstrip() for line in f.readlines())
 
     found_header = False
-    progs = ""
+    progs = []
 
     for line in lines:
         if found_header:
-- 
2.2.2



More information about the Piglit mailing list