Skip to content

Commit

Permalink
tests: move from lxd -> qemu for autopkgtests
Browse files Browse the repository at this point in the history
lxd keeps failing with
```
Timed out waiting for container to boot
```
so switch to qemu for a more reliable test env.
  • Loading branch information
mvo5 committed Jan 30, 2024
1 parent f4a22dd commit 3531168
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,10 @@ jobs:
- name: setup
run: |
sudo apt-get update
sudo apt-get install distro-info autopkgtest git-buildpackage
sudo snap install lxd --channel=stable
sudo usermod --append --groups lxd $(whoami)
sudo lxd init --auto
sudo autopkgtest-build-lxd ubuntu:$(distro-info --stable)
sudo apt-get install distro-info autopkgtest git-buildpackage genisoimage
sudo autopkgtest-buildvm-ubuntu-cloud -r $(distro-info --stable) -o /tmp
- name: build source
run: gbp buildpackage -us -uc -S -d -nc --git-ignore-branch --git-prebuild=
- name: autopkgtest
# skipping tests is ok
run: autopkgtest -U ../build-area/*.dsc -- lxd autopkgtest/ubuntu/$(distro-info --stable)/amd64 || [ $? == 2 ]
run: autopkgtest -U ../build-area/*.dsc -- qemu /tmp/autopkgtest-$(distro-info --stable)-amd64.img || [ $? == 2 ]

0 comments on commit 3531168

Please sign in to comment.