[apparmor] [PATCH v2 8/8] utils: Fix apparmor.easyprof import in test-aa-easyprof.py

Christian Boltz apparmor at cboltz.de
Thu Mar 2 19:36:13 UTC 2017


Hello,

Am Mittwoch, 1. März 2017, 21:52:06 CET schrieb Tyler Hicks:
> The test-aa-easyprof.py script was attempting to do its own special
> setup to import the in-tree easyprof module. However, this proved to
> be very flaky and resulted in the test periodically failing due to an
> AttributeError the first time easyprof.parse_args() was called.
> 
> This patch removes the flakiness by trusting that PYTHONPATH is set up
> appropriately before the test script is ran. PYTHONPATH is already
> initialized appropriately by utils/test/Makefile according to the
> USE_SYSTEM make variable.
> 
> Signed-off-by: Tyler Hicks <tyhicks at canonical.com>
> Cc: Christian Boltz <apparmor at cboltz.de>

I love patches that remove superfluous code ;-)

Acked-by: Christian Boltz <apparmor at cboltz.de>


Regards,

Christian Boltz
-- 
Ansonsten hat web.de sicherlich eine Seite, auf der sie schreiben,
ob es Störungen gibt - achso, ich vergaß, Du liest ja nicht gerne.
Sowas aber auch, meine Ratschläge waren auch mal besser.
[Helga Fischer zu Marcel Stein in suse-linux]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20170302/4cc15389/attachment.pgp>


More information about the AppArmor mailing list