github.com/kubiko/snapd@v0.0.0-20201013125620-d4f3094d9ddf/cmd/snap-confine/spread-tests/main/test-snap-runs/task.yaml (about) 1 summary: Check that basic install works 2 # This is blacklisted on debian because we first have to get the dpkg-vendor patches 3 systems: [-debian-8] 4 prepare: | 5 snap install snapd-hacker-toolbelt 6 execute: | 7 cd / 8 echo Run some hello-world stuff 9 snapd-hacker-toolbelt.busybox echo "Hello World" | grep Hello 10 snapd-hacker-toolbelt.busybox env | grep SNAP_NAME=snapd-hacker-toolbelt 11 echo Ensure that we get an error if we try to abuse the sandbox 12 if snapd-hacker-toolbelt.busybox touch /var/tmp/evil; then exit 1; fi 13 dmesg -c 14 restore: | 15 snap remove --purge snapd-hacker-toolbelt