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 (27 lines) | stat: -rw-r--r-- 766 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
summary: bash completion

details: |
  Check the bash completion works in ubuntu core 22+

systems:
  - ubuntu-core-22-*

prepare: |
  snap install strace-static --edge
  cp ../../lib/snaps/test-snapd-complexion/meta/snap.yaml snap.yaml.bak
  cat <<EOF >>../../lib/snaps/test-snapd-complexion/meta/snap.yaml
  base: core22
  EOF
  cd ../../lib/snaps/test-snapd-complexion || exit 1
  snap try --devmode
  snap alias test-snapd-complexion cplx
  snap alias test-snapd-complexion.two cplx2

restore: |
  snap remove --purge test-snapd-complexion
  mv snap.yaml.bak ../../lib/snaps/test-snapd-complexion/meta/snap.yaml

execute: |
  for c in test-snapd-complexion test-snapd-complexion.two cplx cplx2; do
      python3 test-completion.py "${PWD}/test-rc" "${c}"
  done