From ebae0a651d7cf5ea53fa12dffdd778bafc53b39d Mon Sep 17 00:00:00 2001 From: Simon Chopin Date: Fri, 25 Apr 2025 17:54:38 +0200 Subject: [PATCH] Verify haveged service is active in autopkgtests, skipped in containers. Signed-off-by: Daniel Baumann --- debian/tests/check-service | 5 +++++ debian/tests/control | 2 ++ 2 files changed, 7 insertions(+) diff --git a/debian/tests/check-service b/debian/tests/check-service index 6347219..81d6ab3 100755 --- a/debian/tests/check-service +++ b/debian/tests/check-service @@ -1,5 +1,10 @@ #!/bin/sh +if systemd-detect-virt -qc; then + echo "haveged service will fail in (unprivileged) container, skipping test" + exit 77 +fi + if ! systemctl is-active haveged; then echo "haveged service is not active" systemctl status haveged diff --git a/debian/tests/control b/debian/tests/control index c9d622b..7a3a6b8 100644 --- a/debian/tests/control +++ b/debian/tests/control @@ -1,5 +1,7 @@ Tests: check-service, +Restrictions: + skippable, Tests: run-tests,