For reasons I don't quite understand, and cannot reproduce when running
autopkgtest locally, when the system is tested on the Debian infrastructure
snapd ends up installed but not enabled.
Enable the socket to at least have a chance to run something.
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0022-tests-enable-the-snapd-socket-in-autopkgtest.patch
# we want to run as pristine as possible
if [ "$SPREAD_BACKEND" = autopkgtest ]; then
create_test_user
+ systemctl enable --now snapd.socket
exit 0
fi