From: Babanpreet Singh <bbnpreetsingh@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: Chris Laplante <chris.laplante@agilent.com>,
Peter Kjellerstedt <peter.kjellerstedt@axis.com>,
Richard Purdie <richard.purdie@linuxfoundation.org>,
Babanpreet Singh <bbnpreetsingh@gmail.com>
Subject: [PATCH] oeqa/selftest: clear SANITY_TESTED_DISTROS instead of failing
Date: Sat, 14 Nov 2026 18:55:20 +0000 [thread overview]
Message-ID: <20261114185520.6-1-bbnpreetsingh@gmail.com> (raw)
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
reply other threads:[~2026-11-14 18:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20261114185520.6-1-bbnpreetsingh@gmail.com \
--to=bbnpreetsingh@gmail.com \
--cc=chris.laplante@agilent.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=peter.kjellerstedt@axis.com \
--cc=richard.purdie@linuxfoundation.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