chiark / gitweb /
packaging: When running in "debian" build profile, don't run tests
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 14 Dec 2022 22:03:08 +0000 (22:03 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 14 Dec 2022 22:06:52 +0000 (22:06 +0000)
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 <ijackson@chiark.greenend.org.uk>
debian/rules

index 68e2632c74c3440258249bdc0cc73d64c4815f26..c98b3f595aebc4cfc3d1f3343b0e8167d23d915b 100755 (executable)
@@ -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