From 82062d275dc6a29f35b96eaa1c0eff9b1d3db9f3 Mon Sep 17 00:00:00 2001 From: Tobias Stoeckmann Date: Fri, 27 Sep 2024 21:26:40 +0200 Subject: [PATCH] testsuite: Fix test-weakdep with autoconf defaults If ./configure is run without any further options, then /usr/etc is used as SYSCONFDIR, which breaks test-weakdep, because the /etc path is hardcoded in it. Use SYSCONFDIR to reflect the actual rootfs setup. Signed-off-by: Tobias Stoeckmann Link: https://github.com/kmod-project/kmod/pull/157 Signed-off-by: Lucas De Marchi --- testsuite/test-weakdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuite/test-weakdep.c b/testsuite/test-weakdep.c index 563a7b48..0c7aacd1 100644 --- a/testsuite/test-weakdep.c +++ b/testsuite/test-weakdep.c @@ -19,7 +19,7 @@ #define TEST_WEAKDEP_KERNEL_DIR TEST_WEAKDEP_ROOTFS MODULE_DIRECTORY "/4.4.4/" static const char *const test_weakdep_config_paths[] = { - TEST_WEAKDEP_ROOTFS "etc/modprobe.d", + TEST_WEAKDEP_ROOTFS SYSCONFDIR "/modprobe.d", NULL, }; -- 2.47.3