[apparmor] [PATCH 2/2] parser: Don't skip cleanup when the test was skipped

John Johansen john.johansen at canonical.com
Thu Aug 13 17:47:12 UTC 2015


On 08/12/2015 10:17 AM, Tyler Hicks wrote:
> Signed-off-by: Tyler Hicks <tyhicks at canonical.com>

Acked-by: John Johansen <john.johansen at canonical.com>

> ---
>  parser/tst/testlib.py | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/parser/tst/testlib.py b/parser/tst/testlib.py
> index 90694f9..d15aa5e 100644
> --- a/parser/tst/testlib.py
> +++ b/parser/tst/testlib.py
> @@ -48,6 +48,8 @@ class AANoCleanupMetaClass(type):
>          def new_unittest_func(self):
>              try:
>                  return unittest_func(self)
> +            except unittest.SkipTest:
> +                raise
>              except Exception:
>                  self.do_cleanup = False
>                  raise
> 




More information about the AppArmor mailing list