[Piglit] [PATCH 15/18] integration_tests.py: Skip on addtional error
Jordan Justen
jljusten at gmail.com
Mon Aug 25 18:21:27 PDT 2014
Typo in subject: addtional => additional
On Tue, Aug 19, 2014 at 1:25 PM, Dylan Baker <baker.dylan.c at gmail.com> wrote:
> 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