mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-12-16 07:15:43 +01:00
libgpiod: ptest: rrecommend python3-unittest when building python tests
The python test suite uses the unittest module. It's not built by default in minimal images, so we need to add it RRECOMMENDS explicitly. Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
af758fe2d8
commit
97771cd2f4
|
|
@ -49,7 +49,10 @@ FILES:${PN}-python = "${PYTHON_SITEPACKAGES_DIR}/*.so"
|
|||
FILES:${PN}-staticdev += "${PYTHON_SITEPACKAGES_DIR}/*.a"
|
||||
|
||||
RRECOMMENDS:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'python3', '${PN}-python', '', d)}"
|
||||
RRECOMMENDS:${PN}-ptest += "kernel-module-gpio-mockup"
|
||||
RRECOMMENDS:${PN}-ptest += " \
|
||||
kernel-module-gpio-mockup \
|
||||
${@bb.utils.contains('PACKAGECONFIG', 'python3', 'python3-unittest', '', d)} \
|
||||
"
|
||||
|
||||
PACKAGECONFIG:append = " ${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'tests', '', d)}"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user