diff --git a/DESIGN.md b/DESIGN.md index 09bfa4f4..c8c186d1 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -521,7 +521,7 @@ Tests (and lint checks) are run by github actions using lxd. See `.github/workflows/build.yaml` and `./scripts/test-in-lxd.sh` and so on. -For "real" testing, you need to make a snap (`snapcraft snap`), mash +For "real" testing, you need to make a snap (`snapcraft pack`), mash it into an existing ISO using `./scripts/inject-subiquity-snap.sh`, and boot the result in a VM. There is an even hackier pair of scripts (`./scripts/slimy-update-snap.sh` and diff --git a/README.md b/README.md index 8cad4bfc..a0c8f6a1 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ do this: 1. Build your change into a snap: ``` - $ snapcraft snap --output subiquity_test.snap + $ snapcraft pack --output subiquity_test.snap ``` 2. Grab the current version of the installer: diff --git a/scripts/kvm-test.py b/scripts/kvm-test.py index 9098a4d3..f3543773 100755 --- a/scripts/kvm-test.py +++ b/scripts/kvm-test.py @@ -306,14 +306,14 @@ def build(ctx): with snap_manager('subiquity_test.snap') as snap: if not ctx.args.reuse: run('snapcraft clean --use-lxd') - run(f'snapcraft snap --use-lxd --output {snap} {snapargs}') + run(f'snapcraft pack --use-lxd --output {snap} {snapargs}') assert_exists(snap) livefs_edit(ctx, '--add-snap-from-store', 'core20', 'stable', '--inject-snap', snap) elif project == 'ubuntu-desktop-installer': with snap_manager('udi_test.snap') as snap: run('snapcraft clean --use-lxd') - run(f'snapcraft snap --use-lxd --output {snap} {snapargs}') + run(f'snapcraft pack --use-lxd --output {snap} {snapargs}') assert_exists(snap) run(f'sudo ./scripts/inject-snap {ctx.baseiso} {ctx.iso} {snap}') else: diff --git a/scripts/test-this-branch.sh b/scripts/test-this-branch.sh index f272732f..3e849365 100755 --- a/scripts/test-this-branch.sh +++ b/scripts/test-this-branch.sh @@ -6,7 +6,7 @@ cd $(dirname $(dirname $(readlink -f $0))) sudo apt install -y zsync xorriso isolinux -snapcraft snap --output subiquity_test.snap +snapcraft pack --output subiquity_test.snap urlbase=http://cdimage.ubuntu.com/ubuntu-server/daily-live/current distroname=$(distro-info -d) isoname="${distroname}"-live-server-$(dpkg --print-architecture).iso