diff options
author | Zang Ruochen <zangrc.fnst@cn.fujitsu.com> | 2020-03-20 10:21:33 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2020-03-20 07:44:29 -0700 |
commit | 5c474d09a8497ee0c8dd2561311d614e7cc05c44 (patch) | |
tree | 32b49157477ee659828bd514cdd6287a6a273f68 /meta-python/recipes-devtools/python/python3-xmltodict_0.12.0.bb | |
parent | 54201bae76ddfeaebb077c79fdf28740de76d88e (diff) | |
download | meta-openembedded-contrib-5c474d09a8497ee0c8dd2561311d614e7cc05c44.tar.gz |
python3-xmltodict: Enable ptest
Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-xmltodict_0.12.0.bb')
-rw-r--r-- | meta-python/recipes-devtools/python/python3-xmltodict_0.12.0.bb | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/meta-python/recipes-devtools/python/python3-xmltodict_0.12.0.bb b/meta-python/recipes-devtools/python/python3-xmltodict_0.12.0.bb index 00aa818096..d078883249 100644 --- a/meta-python/recipes-devtools/python/python3-xmltodict_0.12.0.bb +++ b/meta-python/recipes-devtools/python/python3-xmltodict_0.12.0.bb @@ -9,4 +9,17 @@ SRC_URI[sha256sum] = "50d8c638ed7ecb88d90561beedbf720c9b4e851a9fa6c47ebd64e99d16 PYPI_PACKAGE = "xmltodict" -inherit pypi setuptools3 +inherit pypi setuptools3 ptest + +SRC_URI += " \ + file://run-ptest \ +" + +RDEPENDS_${PN}-ptest += " \ + ${PYTHON_PN}-pytest \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ +} |