mirror of
https://git.yoctoproject.org/poky
synced 2026-02-10 10:43:02 +01: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
@@ -6,20 +6,9 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=b15979c39a2543892fca8cd86b4b52cb"
|
||||
|
||||
SRC_URI[sha256sum] = "72ea0c06399eb286d978fdedb6923a9eb47e1c486ce63e9b4e64fc18303972b5"
|
||||
|
||||
inherit pypi setuptools3 ptest
|
||||
inherit pypi setuptools3 ptest-python-pytest
|
||||
|
||||
SRC_URI += " \
|
||||
file://run-ptest \
|
||||
"
|
||||
|
||||
RDEPENDS:${PN}-ptest += " \
|
||||
python3-pytest \
|
||||
python3-unittest-automake-output \
|
||||
"
|
||||
|
||||
do_install_ptest() {
|
||||
install -d ${D}${PTEST_PATH}/tests
|
||||
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
|
||||
do_install_ptest:aapend() {
|
||||
install -d ${D}${PTEST_PATH}/bin
|
||||
cp -rf ${S}/bin/* ${D}${PTEST_PATH}/bin/
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user