mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-07 05:10:20 +00:00
python3-dasbus: update recipe to use the ptest-python-pytest class
Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
pytest --automake
|
|
||||||
@@ -5,18 +5,14 @@ LICENSE = "LGPL-2.1-or-later"
|
|||||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=1803fa9c2c3ce8cb06b4861d75310742"
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=1803fa9c2c3ce8cb06b4861d75310742"
|
||||||
|
|
||||||
SRC_URI = "git://github.com/dasbus-project/dasbus.git;protocol=https;branch=master \
|
SRC_URI = "git://github.com/dasbus-project/dasbus.git;protocol=https;branch=master \
|
||||||
file://run-ptest \
|
|
||||||
"
|
"
|
||||||
SRCREV = "413cf9a0b7c231468f1d28d9a29dd8dd8bda15c5"
|
SRCREV = "413cf9a0b7c231468f1d28d9a29dd8dd8bda15c5"
|
||||||
|
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
inherit setuptools3 ptest
|
inherit setuptools3 ptest-python-pytest
|
||||||
|
|
||||||
do_install_ptest() {
|
|
||||||
install -d ${D}${PTEST_PATH}/tests
|
|
||||||
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
|
|
||||||
|
|
||||||
|
do_install_ptest:append () {
|
||||||
# Remove the problematic cases
|
# Remove the problematic cases
|
||||||
# https://github.com/dasbus-project/dasbus/issues/128
|
# https://github.com/dasbus-project/dasbus/issues/128
|
||||||
rm -rf ${D}${PTEST_PATH}/tests/lib_dbus.py
|
rm -rf ${D}${PTEST_PATH}/tests/lib_dbus.py
|
||||||
@@ -25,8 +21,3 @@ do_install_ptest() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
RDEPENDS:${PN} = "python3-pygobject"
|
RDEPENDS:${PN} = "python3-pygobject"
|
||||||
|
|
||||||
RDEPENDS:${PN}-ptest += " \
|
|
||||||
python3-pytest \
|
|
||||||
python3-unittest-automake-output \
|
|
||||||
"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user