github.com/kubiko/snapd@v0.0.0-20201013125620-d4f3094d9ddf/cmd/snap-confine/spread-tests/main/core-is-preferred/task.yaml (about)

     1  summary: The snap named 'core' is preferred to the snap 'ubuntu-core'
     2  prepare: |
     3      snap install --devmode snapd-hacker-toolbelt
     4      snap install core
     5  execute: |
     6      snapd-hacker-toolbelt.busybox cat /meta/snap.yaml | grep -q -F 'name: core'
     7  restore: |
     8      snap remove --purge snapd-hacker-toolbelt
     9      # XXX: the core snap cannot be removed, we should use a trick to remove it
    10      # in some other way but this can wait.