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 (30 lines) | stat: -rw-r--r-- 1,061 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
27
28
29
30
summary: Check that devmode snaps can be seeded with a dangerous uc20 model

details: |
  Check that devmode snaps are seeded properly when using a dangerous model in
  Ubuntu Core. Verify that the devmode snap can be executed

# this is a UC20 specific test
systems: [ubuntu-2*]

environment:
  NESTED_BUILD_SNAPD_FROM_CURRENT: true

prepare: |
  VERSION="$(tests.nested show version)"

  echo "Build a devmode snap to be included in the seed"
  snap pack "uc${VERSION}-devmode" --filename="$(tests.nested get extra-snaps-path)/devmode.snap"

  tests.nested build-image core
  tests.nested create-vm core

execute: |
  echo "Check that the devmode snap is installed"
  VERSION="$(tests.nested show version)"
  remote.exec "snap list test-snapd-devmode-core$VERSION"
  remote.exec "snap info --verbose test-snapd-devmode-core$VERSION" | MATCH "confinement:\s+devmode"
  remote.exec "snap info --verbose test-snapd-devmode-core$VERSION" | MATCH "devmode:\s+true"
  
  echo "Check that the devmode snap can be run"
  remote.exec "test-snapd-devmode-core$VERSION"