[apparmor] [patch 3/2] update test-aa.py to match parse_profile_start() and get_profile_flags() changes

2015-03-04 Thread Christian Boltz
Hallo, the 1/2 patch slightly changed the behaviour of parse_profile_start() and get_profile_flags() - they raise AppArmorBug instead of AppArmorException when specifying a line that is not the start of a profile and therefore doesn't match RE_PROFILE_START_2. This patch updates test-aa.py to

Re: [apparmor] [patch] simplify setup_all_tests() call in utils test

2015-03-04 Thread Christian Boltz
Hello, here's the I-know-what-I-am-doing reply ;-) Am Mittwoch, 4. März 2015 schrieb Seth Arnold: On Thu, Mar 05, 2015 at 12:06:06AM +0100, Christian Boltz wrote: this patch simplifies the setup_all_tests() call and avoids that every test needs to import sys. The patch applies on top

Re: [apparmor] [patch] simplify setup_all_tests() call in utils test

2015-03-04 Thread Seth Arnold
On Thu, Mar 05, 2015 at 01:22:47AM +0100, Christian Boltz wrote: BTW: If I had noticed earlier that __name__ is always '__main__', I'd have implemented the simplified way from the beginning. But is it always __main__? The whole point of the guard is that the files may be called in multiple