From: Ahmad Fatoum <a.fatoum@barebox.org>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@barebox.org>
Subject: [PATCH master] Makefile: pass KBUILD_OUTPUT to pytest in check target
Date: Mon, 2 Mar 2026 14:50:03 +0100 [thread overview]
Message-ID: <20260302135021.195856-1-a.fatoum@barebox.org> (raw)
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@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
next reply other threads:[~2026-03-02 13:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-02 13:50 Ahmad Fatoum [this message]
2026-03-04 7:34 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260302135021.195856-1-a.fatoum@barebox.org \
--to=a.fatoum@barebox.org \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox