# Pastebin hyOQrz3C zyga@t470:~/go/src/github.com/snapcore/snapd$ cat tests/lib/prepare-restore.d/10-snap-confine-anomaly.sh #!/bin/sh # Look for anomalous files in the system-wide apparmor profile directory. We # have observed such files in some tests but were unsuccessful in tracing their # source. They seem to be leftovers from atomic file write operations. on_restore_project_each() { if ls /etc/apparmor.d/snap.core.*.usr.lib.snapd.snap-confine.*; then echo "snap-confine apparmor profile atomic-write anomaly detected" exit 1 fi }