Another patch on top (since you didn't commit any you can squash that with the former one). If not using fakeroot it needs to use DEB_RULES_REQUIRES_ROOT.
Patch attached -- Christian Ehrhardt Staff Engineer, Ubuntu Server Canonical Ltd
From db4509f2dd3d1f5008eaf1325d882950d38b703e Mon Sep 17 00:00:00 2001 From: Christian Ehrhardt <christian.ehrha...@canonical.com> Date: Tue, 14 Jul 2020 14:41:21 +0200 Subject: [PATCH] d/rules: fix the DEB_GAIN_ROOT_CMD call to dh_auto_test Signed-off-by: Christian Ehrhardt <christian.ehrha...@canonical.com> --- debian/rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index 27f6f63..068c04d 100755 --- a/debian/rules +++ b/debian/rules @@ -36,7 +36,7 @@ override_dh_auto_test: ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS))) ifeq ($(DEB_RULES_REQUIRES_ROOT),dpkg/target-subcommand) ifeq (,$(findstring fakeroot,$(DEB_GAIN_ROOT_CMD))) - $(DEB_RULES_REQUIRES_ROOT) dh_auto_test -- runtests || true + $(DEB_GAIN_ROOT_CMD) dh_auto_test -- runtests || true else @echo 'Warning: Tests require real root, not fakeroot. Skipping.' >&2 endif -- 2.27.0