systemd/0121-test-sd-device-skip-misc-devices.patch
Jan Macku 79350f79d8 systemd-252-2
Resolves: #2137584,#2138081,#2141979
2022-12-09 09:36:14 +01:00

25 lines
1.0 KiB
Diff

From c6b52050b8da6f5e7cdd2f057141af236288e78b Mon Sep 17 00:00:00 2001
From: Jan Macku <jamacku@redhat.com>
Date: Mon, 31 Oct 2022 10:58:11 +0100
Subject: [PATCH] test-sd-device: skip "misc" devices
rhel-only
Related: #2138081
---
src/libsystemd/sd-device/test-sd-device.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/libsystemd/sd-device/test-sd-device.c b/src/libsystemd/sd-device/test-sd-device.c
index 4ab8b3894a..a1bcf18059 100644
--- a/src/libsystemd/sd-device/test-sd-device.c
+++ b/src/libsystemd/sd-device/test-sd-device.c
@@ -204,6 +204,7 @@ TEST(sd_device_enumerator_devices) {
/* On CentOS CI, systemd-networkd-tests.py may be running when this test is invoked. The networkd
* test creates and removes many network interfaces, and may interfere with this test. */
assert_se(sd_device_enumerator_add_match_subsystem(e, "net", false) >= 0);
+ assert_se(sd_device_enumerator_add_match_subsystem(e, "misc", false) >= 0);
FOREACH_DEVICE(e, d)
test_sd_device_one(d);
}