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 (11 lines) | stat: -rw-r--r-- 573 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
summary: Check that installing a snap requiring a base fails if base has invalid type

details: |
    Verify the error shown when installing a snap with an invalid base.

prepare: |
    snap pack test-snapd-invalid-base

execute: |
    echo "Install a snap with an invalid base 'test-snapd-tools' and check it is not allowed"
    snap install --dangerous test-snapd-invalid-base_1.0_all.snap 2>&1 | MATCH "Ensure prerequisites for \"test-snapd-invalid-base\" are available \(cannot install snap base \"test-snapd-tools\": unexpected snap type \"app\", instead of 'base'\)"