From: Matt Atwood <[email protected]>
Check if subdir variable is an actual subdirectory.
---
tests/igt.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/igt.py b/tests/igt.py
index 58226a4..22250ce 100644
--- a/tests/igt.py
+++ b/tests/igt.py
@@ -56,6 +56,8 @@ def checkEnvironment():
print "Test Environment check: debugfs not mounted properly!"
return False
for subdir in os.listdir(debugfs_path):
+ if not os.path.isdir(os.path.join(debugfs_path, subdir)):
+ continue
clients = open(os.path.join(debugfs_path, subdir, "clients"), 'r')
lines = clients.readlines()
if len(lines) > 2:
--
1.8.3.2
_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit