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 fa815c8
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,12 @@ 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 qemu-system-x86
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=
run: |
git clean -xfd
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: sudo autopkgtest -U ../build-area/*.dsc -- qemu /tmp/autopkgtest-$(distro-info --stable)-amd64.img || [ $? == 2 ]

0 comments on commit fa815c8

Please sign in to comment.