File: task.yaml

package info (click to toggle)
snapd 2.71-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 79,536 kB
  • sloc: ansic: 16,114; sh: 16,105; python: 9,941; makefile: 1,890; exp: 190; awk: 40; xml: 22
file content (27 lines) | stat: -rw-r--r-- 766 bytes parent folder | download | duplicates (2)
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