libgpiod: fix QA error in ptest RDEPENDS

The bash in ptest RDEPENDS would cause following QA error:

   ERROR: QA Issue: lib32-libgpiod package lib32-libgpiod-ptest-dev -
   suspicious values 'bash-dev' in RRECOMMENDS [multilib]

Add a ptest enable dependency to avoid this QA error happens.

Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Xiangyu Chen 2024-04-09 11:02:27 +08:00 committed by Khem Raj
parent f6d6122ba7
commit 4f72481c68
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -21,8 +21,7 @@ FILES:${PN}-ptest += "${libdir}/libgpiosim.so.*"
FILES:${PN}-ptest-dev += "${includedir}/gpiosim.h"
RDEPENDS:${PN}-ptest += " \
bash \
${@bb.utils.contains('PTEST_ENABLED', '1', 'shunit2', '', d)} \
${@bb.utils.contains('PTEST_ENABLED', '1', 'shunit2 bash', '', d)} \
"
RRECOMMENDS:${PN}-ptest += "kernel-module-gpio-sim kernel-module-configfs"