Skip to content

Commit

Permalink
tests: fix security-seccomp test by skip using the apparmor parser wi…
Browse files Browse the repository at this point in the history
…th cache (canonical#12893)

The test is failing sporadically in uc18. The error seems to be related
to the apparmor_parser which is generating incorrect definitions. This
error seems to be caused because of cached profiles.
  • Loading branch information
sergiocazzolato authored Jul 11, 2023
1 parent e873fab commit d8f6ff3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/main/security-seccomp/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ prepare: |
if snap debug sandbox-features --required apparmor:parser:snapd-internal; then
APPARMOR_PARSER="/snap/snapd/current/usr/lib/snapd/apparmor_parser --config-file /snap/snapd/current/usr/lib/snapd/apparmor/parser.conf -b /snap/snapd/current/usr/lib/snapd/apparmor.d --policy-features /snap/snapd/current/usr/lib/snapd/apparmor.d/abi/3.0"
fi
$APPARMOR_PARSER -r "$AAP"
$APPARMOR_PARSER -K -r "$AAP"
fi
restore: |
Expand All @@ -59,7 +59,7 @@ restore: |
if snap debug sandbox-features --required apparmor:parser:snapd-internal; then
APPARMOR_PARSER="/snap/snapd/current/usr/lib/snapd/apparmor_parser --config-file /snap/snapd/current/usr/lib/snapd/apparmor/parser.conf -b /snap/snapd/current/usr/lib/snapd/apparmor.d --policy-features /snap/snapd/current/usr/lib/snapd/apparmor.d/abi/3.0"
fi
$APPARMOR_PARSER -r "$AAP"
$APPARMOR_PARSER -K -r "$AAP"
fi
execute: |
Expand Down

0 comments on commit d8f6ff3

Please sign in to comment.