From: Tobias Stoeckmann Date: Fri, 27 Sep 2024 19:26:40 +0000 (+0200) Subject: testsuite: Fix test-weakdep with autoconf defaults X-Git-Tag: v34~283 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82062d275dc6a29f35b96eaa1c0eff9b1d3db9f3;p=thirdparty%2Fkmod.git 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 --- 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, };