[PATCH master] Makefile: pass KBUILD_OUTPUT to pytest in check target
Ahmad Fatoum
a.fatoum at barebox.org
Mon Mar 2 05:50:03 PST 2026
The check target runs pytest from the source directory, but doesn't
propagate the build output directory. conftest.py falls back to
using build/ if it exists, which may contain a completely different
configuration.
Signed-off-by: Ahmad Fatoum <a.fatoum at barebox.org>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 28f450ee7cd7..e62965d4c1c8 100644
--- a/Makefile
+++ b/Makefile
@@ -1083,7 +1083,7 @@ endif
fi
@echo
@# This is intentionally not @suppressed, to make it easier to reproduce
- (cd $(srctree); $(PYTEST))
+ (cd $(srctree); KBUILD_OUTPUT=$(abs_objtree) $(PYTEST))
PHONY += check
--
2.47.3
More information about the barebox
mailing list