github.com/chipaca/snappy@v0.0.0-20210104084008-1f06296fe8ad/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.