The patch pasted above doesn't fully work. We need something like this: diff --git a/debian/tests/control b/debian/tests/control index e7d7c3ab045..0e3ab7625b2 100644 --- a/debian/tests/control +++ b/debian/tests/control @@ -122,7 +122,7 @@ Depends: systemd-tests, libpam-systemd, autopkgtest, lsb-release, - lxd + snapd, Restrictions: needs-root, allow-stderr, isolation-machine, breaks-testbed, skip-not-installable, skippable
Tests: upstream-1, upstream-2 diff --git a/debian/tests/tests-in-lxd b/debian/tests/tests-in-lxd index f1103b40a93..b442ed1c9e0 100644 --- a/debian/tests/tests-in-lxd +++ b/debian/tests/tests-in-lxd @@ -4,6 +4,7 @@
set -eu
+snap install lxd lxd init --auto
IMAGE=autopkgtest/ubuntu/$(lsb_release -cs)/$(dpkg --print-architecture)
The patch pasted above doesn't fully work. We need something like this: tests/control b/debian/ tests/control .0e3ab7625b2 100644 tests/control tests/control installable, skippable
diff --git a/debian/
index e7d7c3ab045.
--- a/debian/
+++ b/debian/
@@ -122,7 +122,7 @@ Depends: systemd-tests,
libpam-systemd,
autopkgtest,
lsb-release,
- lxd
+ snapd,
Restrictions: needs-root, allow-stderr, isolation-machine, breaks-testbed, skip-not-
Tests: upstream-1, upstream-2 tests/tests- in-lxd b/debian/ tests/tests- in-lxd .b442ed1c9e0 100644 tests/tests- in-lxd tests/tests- in-lxd
diff --git a/debian/
index f1103b40a93.
--- a/debian/
+++ b/debian/
@@ -4,6 +4,7 @@
set -eu
+snap install lxd
lxd init --auto
IMAGE= autopkgtest/ ubuntu/ $(lsb_release -cs)/$(dpkg --print- architecture)