From dff4fb7c3544a34e914d367967cd3c0f14840d07 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Thu, 20 Nov 2025 14:33:30 +0000 Subject: [PATCH] test: skip test-loop-block udev part in chroot too Same reason as containers, need full udev/uevent machinery for this --- src/test/test-loop-block.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/test-loop-block.c b/src/test/test-loop-block.c index 4651998ef1c..144f898f3c7 100644 --- a/src/test/test-loop-block.c +++ b/src/test/test-loop-block.c @@ -240,8 +240,8 @@ static int run(int argc, char *argv[]) { if (geteuid() != 0 || have_effective_cap(CAP_SYS_ADMIN) <= 0) return log_tests_skipped("not running privileged"); - if (detect_container() > 0) - return log_tests_skipped("Test not supported in a container, requires udev/uevent notifications"); + if (detect_container() > 0 || running_in_chroot() > 0) + return log_tests_skipped("Test not supported in a container/chroot, requires udev/uevent notifications"); assert_se(loop_device_make(fd, O_RDWR, 0, UINT64_MAX, 0, LO_FLAGS_PARTSCAN, LOCK_EX, &loop) >= 0); -- 2.47.3