]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
testsuite: Fix test-weakdep with autoconf defaults
authorTobias Stoeckmann <tobias@stoeckmann.org>
Fri, 27 Sep 2024 19:26:40 +0000 (21:26 +0200)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Sat, 28 Sep 2024 04:14:04 +0000 (23:14 -0500)
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 <tobias@stoeckmann.org>
Link: https://github.com/kmod-project/kmod/pull/157
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
testsuite/test-weakdep.c

index 563a7b48fa2afda6f53a3386e006b6c6e511c5b5..0c7aacd16d4f48812584d42922c552f81cc634bb 100644 (file)
@@ -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,
 };