If a config file doesn't have a section for the external suites they
will raise an exception. This causes the tests to skip if there is a
NoSectionError

Signed-off-by: Dylan Baker <[email protected]>
---
 framework/tests/integration_tests.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/framework/tests/integration_tests.py 
b/framework/tests/integration_tests.py
index 72519c2..c304146 100644
--- a/framework/tests/integration_tests.py
+++ b/framework/tests/integration_tests.py
@@ -39,7 +39,7 @@ def _import(name):
     """ Helper for importing modules """
     try:
         return importlib.import_module(name)
-    except (ConfigParser.NoOptionError, SystemExit):
+    except (ConfigParser.NoOptionError, ConfigParser.NoSectionError, 
SystemExit):
         raise SkipTest('No config section for {}'.format(name))
 
 
-- 
2.0.4

_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to