From f58640d2935e28f5e2831620d8f38a1caca2ec4f Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 14 Dec 2022 22:03:08 +0000 Subject: [PATCH] packaging: When running in "debian" build profile, don't run tests We can't rely on unshare being allowed at build time. Save this for autopkgtests (which don't exist yet). Signed-off-by: Ian Jackson --- debian/rules | 3 +++ 1 file changed, 3 insertions(+) diff --git a/debian/rules b/debian/rules index 68e2632..c98b3f5 100755 --- a/debian/rules +++ b/debian/rules @@ -34,4 +34,7 @@ execute_before_dh_auto_clean: if test -f Cargo.lock.upstream; \ then mv Cargo.lock.upstream Cargo.lock; fi +override_dh_auto_test: + @echo not running tests during build - they need unshare + endif -- 2.30.2