add another helper script

This commit is contained in:
Michael Hudson-Doyle 2017-08-23 10:20:44 +12:00
parent 358afec973
commit a94f0f2f43
3 changed files with 17 additions and 0 deletions

3
.gitignore vendored
View File

@ -65,3 +65,6 @@ venv
# probert as its pulled externally
probert
# installer isos
*.iso

View File

@ -69,3 +69,5 @@ do this:
```
$ kvm -m 1024 -hda target.img -serial stdio
```
The first three steps are bundled into the script ./scripts/test-this-branch.sh.

12
scripts/test-this-branch.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
set -eux
cd $(dirname $(dirname $(readlink -f $0)))
snapcraft snap --output subiquity_test.snap
urlbase=http://cdimage.ubuntu.com/ubuntu-server/daily-live/current
isoname=$(distro-info -d)-live-$(dpkg --print-architecture).iso
zsync ${urlbase}/${isoname}.zsync
sudo ./scripts/inject-subquity-snap.sh ${isoname} subquity_test.snap custom.iso