Skip to content

Commit

Permalink
tests: disable classic checks of snapctl-is-connected-pid on Ubuntu 1…
Browse files Browse the repository at this point in the history
…4.04

These tests rely on the ability to identify the snap a process ID
belongs to, which means either (a) the systemd or unified cgroup name
includes the snap name, or (b) the freezer cgroup includes the snap
name.

On Ubuntu 14.04, processes are not tracked via systemd so (a) fails.
And snap-confine does not add classic confined processes to a freezer
cgroup, so (b) fails as well.

We're still runing the parts of the test that deal with strict confined
snaps, since that functions correctly on 14.04.
  • Loading branch information
jhenstridge committed Feb 3, 2021
1 parent b318e51 commit bfba67b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/main/snapctl-is-connected-pid/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ execute: |
if [[ "$SPREAD_SYSTEM" = ubuntu-core-* ]]; then
exit 0
fi
# We also skip Ubuntu 14.04, since it does not allow us track
# classic confined snap processes (there is no systemd based
# tracking, and they aren't added to a freezer cgroup).
if [[ "$SPREAD_SYSTEM = "ubuntu-14.04-*" ]]; then
exit 0
fi
#shellcheck source=tests/lib/snaps.sh
. "$TESTSLIB"/snaps.sh
Expand Down

0 comments on commit bfba67b

Please sign in to comment.