mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
utils/test-network.py: fix failing testcase
Whendc010bc034
was backported to the apparmor-2.13 branch (in commit75236d62e2
), it did not take into accountcb8c3377ba
, which creates the common/list_af_names.sh script as used in the test case, was not also backported to the apparmor-2.13 branch. Change the test case to get the list of network AF names via the same make invocation taken by the utils/vim/create-apparmor.vim.py script before the common/list_af_names.sh existed. PR: https://gitlab.com/apparmor/apparmor/merge_requests/391 Signed-off-by: Steve Beattie <steve.beattie@canonical.com> Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
parent
3ce03f8516
commit
0c65b9aeb9
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ exp = namedtuple('exp', ['audit', 'allow_keyword', 'deny', 'comment',
|
|||
|
||||
class NetworkKeywordsTest(AATest):
|
||||
def test_network_keyword_list(self):
|
||||
rc, output = cmd('../../common/list_af_names.sh')
|
||||
rc, output = cmd(['make', '-s', '--no-print-directory', 'list_af_names'])
|
||||
self.assertEqual(rc, 0)
|
||||
|
||||
af_names = []
|
||||
|
|
Loading…
Add table
Reference in a new issue