github.com/kubiko/snapd@v0.0.0-20201013125620-d4f3094d9ddf/cmd/snap-confine/spread-tests/main/mount-usr-src/task.yaml (about) 1 summary: Check for https://bugs.launchpad.net/snap-confine/+bug/1597842 2 # This is blacklisted on debian because debian doesn't use apparmor yet 3 systems: [-debian-8] 4 details: | 5 The snappy execution environment should contain the /usr/src directory 6 from the host filesystem when running on a classic distribution. 7 prepare: | 8 echo "Having installed the snapd-hacker-toolbelt snap" 9 snap install snapd-hacker-toolbelt 10 echo "and having connected the mount-observe interface" 11 snap connect snapd-hacker-toolbelt:mount-observe ubuntu-core:mount-observe 12 execute: | 13 cd / 14 echo "We can ensure that /usr/src is mounted" 15 /snap/bin/snapd-hacker-toolbelt.busybox cat /proc/self/mounts | grep ' /usr/src ' 16 restore: | 17 snap remove --purge snapd-hacker-toolbelt