From 060863f72f4c46f778f9b958965c45ae4dab3207 Mon Sep 17 00:00:00 2001 From: Floweynt <50057682+Floweynt@users.noreply.github.com> Date: Sat, 12 Sep 2026 12:28:19 -0500 Subject: [PATCH] tests: require devices more strictly --- tests/server-n0/integration.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tests/server-n0/integration.py b/tests/server-n0/integration.py index edd7d41..b5f95c8 100644 --- a/tests/server-n0/integration.py +++ b/tests/server-n0/integration.py @@ -333,12 +333,6 @@ with subtest("(functional): published ports follow the container's lifetime"): with subtest("(functional): declared devices are usable in-container"): for name, devices in DEVICES.items(): for dev in devices: - if server.execute(f"test -e {dev}")[0] != 0: - # host lacks the device (e.g. /dev/kvm without nested - # virtualization, as in this test's own VM) - nspawn skips - # populating it in-container, so there's nothing to check. - continue - # opened, not stat'd: without DeviceAllow= the node is still visible server.succeed(ct_cmd(name, f"exec 3<> {dev}"))