[Piglit] [PATCH 15/18] integration_tests.py: Skip on addtional error
Dylan Baker
baker.dylan.c at gmail.com
Tue Aug 19 13:25:09 PDT 2014
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 <dylanx.c.baker at intel.com>
---
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
More information about the Piglit
mailing list