Comment 2 for bug 1976607

Revision history for this message
Lukas Märdian (slyon) wrote :

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)