[apparmor] [patch 03/11] utils: dont delete tmpdir when debugging test-aa-easyprof.py

Seth Arnold seth.arnold at canonical.com
Thu Mar 6 06:24:59 UTC 2014


On Wed, Mar 05, 2014 at 05:44:37PM -0800, Steve Beattie wrote:
> It's not useful to report the location of the temporary directory for
> each test if you're going to immediately delete it.
> 
> Signed-off-by: Steve Beattie <steve at nxnw.org>

Acked-by: Seth Arnold <seth.arnold at canonical.com>

> ---
>  utils/test/test-aa-easyprof.py |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> Index: b/utils/test/test-aa-easyprof.py
> ===================================================================
> --- a/utils/test/test-aa-easyprof.py
> +++ b/utils/test/test-aa-easyprof.py
> @@ -172,7 +172,8 @@ TEMPLATES_DIR="%s/templates"
>          if os.path.exists(self.tmpdir):
>              if debugging:
>                  sys.stdout.write("%s\n" % self.tmpdir)
> -            recursive_rm(self.tmpdir)
> +            else:
> +                recursive_rm(self.tmpdir)
>  
>  #
>  # config file tests
> 
> 
> -- 
> AppArmor mailing list
> AppArmor at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/apparmor
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20140305/41550650/attachment.pgp>


More information about the AppArmor mailing list