mirror of
https://git.yoctoproject.org/poky
synced 2026-04-05 08:02:25 +02:00
python3-*: Update recipes with pytest ptests to use the new ptest-python-pytest class
The newly added ptest-python-pytest removes duplication for: 1. Copying pytest files to the ptest directory 2. Adding standard pytest dependencies 3. Adding a common run-ptest script using pytest (From OE-Core rev: 8d84d9e19b9292b1863921611924714d77c41d21) Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
095beae008
commit
cf6b12e5c9
@@ -5,13 +5,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.md;md5=204c0612e40a4dd46012a78d02c80fb1"
|
||||
|
||||
SRC_URI[sha256sum] = "12f65c9b470abda6dc35cf8e63cc574b1c52b11df2c86030af0ac09b01b13ea9"
|
||||
|
||||
SRC_URI += "file://run-ptest"
|
||||
|
||||
inherit pypi python_flit_core ptest
|
||||
|
||||
do_install_ptest() {
|
||||
cp -r ${S}/tests ${D}${PTEST_PATH}/
|
||||
}
|
||||
inherit pypi python_flit_core ptest-python-pytest
|
||||
|
||||
RDEPENDS:${PN} += "python3-codecs"
|
||||
RDEPENDS:${PN}-ptest += "python3-unittest-automake-output"
|
||||
|
||||
Reference in New Issue
Block a user