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 (18 lines) | stat: -rw-r--r-- 675 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
summary: Check that try command works when snap dir is omitted

details: |
    The snap try command can be executed without an argument, to imply that the
    current working directory is the root of the unpacked snap structure. The
    test uses "snap try" to install one of the test packages and ensures that it
    shows up as in "try" mode according to "snap list"

systems: [-ubuntu-core-*]

execute: |
    echo "When try is executed inside a snap directory"
    # shellcheck disable=SC2164
    cd "$TESTSLIB"/snaps/test-snapd-tools
    snap try

    echo "Then the snap is listed as installed with try in the notes"
    snap list | grep -Pq '^test-snapd-tools +.*?try'