mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-22 01:57:43 +00:00
test-aa-notify: Update help test
Signed-off-by: Maxime Bélair <maxime.belair@canonical.com>
This commit is contained in:
parent
144d782ae8
commit
eae49bf8de
@ -168,10 +168,11 @@ class AANotifyTest(AANotifyBase):
|
|||||||
expected_return_code = 0
|
expected_return_code = 0
|
||||||
expected_output_1 = \
|
expected_output_1 = \
|
||||||
'''usage: aa-notify [-h] [-p] [--display DISPLAY] [-f FILE] [-l] [-s NUM] [-v]
|
'''usage: aa-notify [-h] [-p] [--display DISPLAY] [-f FILE] [-l] [-s NUM] [-v]
|
||||||
[-u USER] [-w NUM] [-m] [-F] [--prompt-filter PF] [--debug]
|
[-u USER] [-w NUM] [-m] [-F] [-L [{yes,no,auto}]]
|
||||||
[--filter.profile PROFILE] [--filter.operation OPERATION]
|
[--prompt-filter PF] [--debug] [--filter.profile PROFILE]
|
||||||
[--filter.name NAME] [--filter.denied DENIED]
|
[--filter.operation OPERATION] [--filter.name NAME]
|
||||||
[--filter.family FAMILY] [--filter.socket SOCKET]
|
[--filter.denied DENIED] [--filter.family FAMILY]
|
||||||
|
[--filter.socket SOCKET]
|
||||||
|
|
||||||
Display AppArmor notifications or messages for DENIED entries.
|
Display AppArmor notifications or messages for DENIED entries.
|
||||||
''' # noqa: E128
|
''' # noqa: E128
|
||||||
@ -193,6 +194,8 @@ Display AppArmor notifications or messages for DENIED entries.
|
|||||||
-m, --merge-notifications
|
-m, --merge-notifications
|
||||||
Merge notification for improved readability (with -p)
|
Merge notification for improved readability (with -p)
|
||||||
-F, --foreground Do not fork to the background
|
-F, --foreground Do not fork to the background
|
||||||
|
-L, --local [{yes,no,auto}]
|
||||||
|
Add to local profile
|
||||||
--prompt-filter PF kind of operations which display a popup prompt
|
--prompt-filter PF kind of operations which display a popup prompt
|
||||||
--debug debug mode
|
--debug debug mode
|
||||||
|
|
||||||
@ -231,6 +234,11 @@ Filtering options:
|
|||||||
), (
|
), (
|
||||||
', --wait NUM ',
|
', --wait NUM ',
|
||||||
' NUM, --wait NUM',
|
' NUM, --wait NUM',
|
||||||
|
), (
|
||||||
|
' -L, --local [{yes,no,auto}]\n'
|
||||||
|
+ ' Add to local profile',
|
||||||
|
' -L [{yes,no,auto}], --local [{yes,no,auto}]\n'
|
||||||
|
+ ' Add to local profile'
|
||||||
)]
|
)]
|
||||||
for patch in patches:
|
for patch in patches:
|
||||||
expected_output_2 = expected_output_2.replace(patch[0], patch[1])
|
expected_output_2 = expected_output_2.replace(patch[0], patch[1])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user