github.com/canonical/ubuntu-image@v0.0.0-20240430122802-2202fe98b290/tests/commons/snap/task.yaml (about) 1 summary: Build core amd64 image 2 3 environment: 4 IMG/ubuntu_core_18_amd64: ubuntu-core-18-amd64 5 IMG/ubuntu_core_20_amd64: ubuntu-core-20-amd64 6 IMG/ubuntu_core_22_amd64: ubuntu-core-22-amd64 7 8 execute: | 9 mkdir -p /tmp/${IMG}/workdir 10 IMG_DEF_PATH=/home/ubuntu-image/models/${IMG}.model 11 ubuntu-image snap --workdir /tmp/${IMG}/workdir --debug $IMG_DEF_PATH 12 test /tmp/${IMG}/workdir/pc.img 13 14 debug: | 15 df -h 16 mount -l 17 if [ -f loop.txt ]; then 18 cat loop.txt 19 fi 20 losetup -l