* [PATCH] oeqa/selftest: clear SANITY_TESTED_DISTROS instead of failing
@ 2026-11-14 18:55 Babanpreet Singh
2026-11-26 14:48 ` Paul Barker
0 siblings, 1 reply; 2+ messages in thread
From: Babanpreet Singh @ 2026-11-14 18:55 UTC (permalink / raw)
To: openembedded-core
Cc: Chris Laplante, Peter Kjellerstedt, Richard Purdie,
Babanpreet Singh
oe-selftest refuses to run when SANITY_TESTED_DISTROS is set, and
poky.conf sets it:
Please unset SANITY_TESTED_DISTROS in order to run oe-selftest
Clear it in the test build directory with :forcevariable, so a value
set through an override goes too, and drop the check.
[YOCTO #11933]
Suggested-by: Chris Laplante <chris.laplante@agilent.com>
Suggested-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Babanpreet Singh <bbnpreetsingh@gmail.com>
---
Notes:
https://lore.kernel.org/openembedded-core/20241003213726.2518832-1-chris.laplante@agilent.com/
meta/lib/oeqa/selftest/context.py | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/meta/lib/oeqa/selftest/context.py b/meta/lib/oeqa/selftest/context.py
index c9eb481725..e042eb1a78 100644
--- a/meta/lib/oeqa/selftest/context.py
+++ b/meta/lib/oeqa/selftest/context.py
@@ -141,6 +141,9 @@ class OESelftestTestContext(OETestContext):
# Set SSTATE_DIR to match the parent SSTATE_DIR
subprocess.check_output("echo 'SSTATE_DIR ?= \"%s\"' >> %s/conf/local.conf" % (sstatedir, newbuilddir), cwd=newbuilddir, shell=True)
+ # Clear SANITY_TESTED_DISTROS however it was set
+ subprocess.check_output("echo 'SANITY_TESTED_DISTROS:forcevariable = \"\"' >> %s/conf/local.conf" % newbuilddir, cwd=newbuilddir, shell=True)
+
os.chdir(newbuilddir)
def patch_test(t):
@@ -349,10 +352,6 @@ class OESelftestTestContextExecutor(OETestContextExecutor):
self.tc.logger.error("Please unset PRSERV_HOST in order to run oe-selftest")
raise OEQAPreRun
- if "SANITY_TESTED_DISTROS" in self.tc.td:
- self.tc.logger.error("Please unset SANITY_TESTED_DISTROS in order to run oe-selftest")
- raise OEQAPreRun
-
_add_layer_libs()
self.tc.logger.info("Checking base configuration is valid/parsable")
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] oeqa/selftest: clear SANITY_TESTED_DISTROS instead of failing
2026-11-14 18:55 [PATCH] oeqa/selftest: clear SANITY_TESTED_DISTROS instead of failing Babanpreet Singh
@ 2026-11-26 14:48 ` Paul Barker
0 siblings, 0 replies; 2+ messages in thread
From: Paul Barker @ 2026-11-26 14:48 UTC (permalink / raw)
To: Babanpreet Singh, openembedded-core
Cc: Chris Laplante, Peter Kjellerstedt, Richard Purdie
On Sat Nov 14, 2026 at 6:55 PM GMT, Babanpreet Singh wrote:
> oe-selftest refuses to run when SANITY_TESTED_DISTROS is set, and
> poky.conf sets it:
>
> Please unset SANITY_TESTED_DISTROS in order to run oe-selftest
>
> Clear it in the test build directory with :forcevariable, so a value
> set through an override goes too, and drop the check.
>
> [YOCTO #11933]
Hi,
We discussed this during the patch review call. This is a minimal fix
for the specific error message seen when SANITY_TESTED_DISTROS is set
when running oe-selftest, but it's not a complete fix for the issues we
have with oe-selftest repeatability.
Ideally, oe-selftest should construct a new build environment from
scratch and copy in only the specific configuration that it needs from
the users existing conf directory. Implementing that is probably
non-trivial as it requires understanding the selftest framework and
figuring out what the tests actually need in different contexts. There
are also open questions to resolve such as whether the user's site.conf
file should be used as-is, even if we're dropping most of what's in
their local.conf file.
That is obviously a bigger set of changes and needs discussion. In the
meantime we'd rather not take this patch as it would just mask actual
problems.
Apologies!
Best regards,
--
Paul Barker
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-26 14:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-14 18:55 [PATCH] oeqa/selftest: clear SANITY_TESTED_DISTROS instead of failing Babanpreet Singh
2026-11-26 14:48 ` Paul Barker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox