Checking for PTEST_ENABLED 1 is the preferred method for enabling
and disabling ptests for packages.

Signed-off-by: Adam Duskett <[email protected]>
---
 meta-oe/recipes-devtools/libtoml11/libtoml11_4.4.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-oe/recipes-devtools/libtoml11/libtoml11_4.4.0.bb 
b/meta-oe/recipes-devtools/libtoml11/libtoml11_4.4.0.bb
index d07e49c4fe..4b9eccf88d 100644
--- a/meta-oe/recipes-devtools/libtoml11/libtoml11_4.4.0.bb
+++ b/meta-oe/recipes-devtools/libtoml11/libtoml11_4.4.0.bb
@@ -21,7 +21,7 @@ SRC_URI = 
"gitsm://github.com/ToruNiina/toml11.git;protocol=https;branch=main \
 inherit cmake ptest
 
 EXTRA_OECMAKE += "-DTOML11_PRECOMPILE=ON \
-                  -DTOML11_BUILD_TESTS=${@bb.utils.contains("DISTRO_FEATURES", 
"ptest", "ON", "OFF", d)} \
+                  -DTOML11_BUILD_TESTS=${@bb.utils.contains("PTEST_ENABLED", 
"1", "ON", "OFF", d)} \
 "
 
 ALLOW_EMPTY:${PN} = "1"
-- 
2.53.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#124464): 
https://lists.openembedded.org/g/openembedded-devel/message/124464
Mute This Topic: https://lists.openembedded.org/mt/117858411/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to