File: task.yaml

package info (click to toggle)
snapd 2.72-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 80,412 kB
  • sloc: sh: 16,506; ansic: 16,211; python: 11,213; makefile: 1,919; exp: 190; awk: 58; xml: 22
file content (26 lines) | stat: -rw-r--r-- 981 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
summary: Check that refreshes that require new base snaps work

details: |
    Verify that when a snap which doesn't have a base snap declared is
    refreshed and the new snap has a base snap declared, then the
    base snap is downloaded/installed in the system as part of the
    refresh process.

systems: [-opensuse-*]

execute: |
    echo "Install a snap that requires no base snap"
    cp -a "$TESTSLIB"/snaps/test-snapd-requires-base-bare .
    sed -i '/^base:/d' test-snapd-requires-base-bare/meta/snap.yaml
    snap pack test-snapd-requires-base-bare
    snap install --dangerous test-snapd-requires-base-bare_1.0_all.snap
    if snap list | grep test-snapd-base-bare; then
        echo "ERROR: test-snapd-base-bare got pulled in"
        exit 1
    fi

    echo "Now refresh to the version in the store that has a base"
    snap refresh --edge --amend test-snapd-requires-base-bare

    echo "And ensure the base got pulled in"
    snap list | grep test-snapd-base-bare