diff options
author | Zang Ruochen <zangrc.fnst@cn.fujitsu.com> | 2020-04-02 09:38:32 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2020-04-01 23:32:54 -0700 |
commit | 9a156a9f064b54f0d43e08ebd8128c5641eac510 (patch) | |
tree | 1fd3bfb265b74bdb2cb9f653da1d2443a18909ef | |
parent | 1fed24e60373866e13ceb12157575c4e09d5f261 (diff) | |
download | meta-openembedded-9a156a9f064b54f0d43e08ebd8128c5641eac510.tar.gz |
python3-pluggy: Enable ptest
Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-python/recipes-devtools/python/python-pluggy.inc | 15 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python/python3-pluggy/run-ptest | 2 |
2 files changed, 16 insertions, 1 deletions
diff --git a/meta-python/recipes-devtools/python/python-pluggy.inc b/meta-python/recipes-devtools/python/python-pluggy.inc index 7585984dbb..1198d5f740 100644 --- a/meta-python/recipes-devtools/python/python-pluggy.inc +++ b/meta-python/recipes-devtools/python/python-pluggy.inc @@ -11,4 +11,17 @@ RDEPENDS_${PN} += "${PYTHON_PN}-importlib-metadata \ ${PYTHON_PN}-more-itertools \ " -inherit pypi +inherit pypi ptest + +SRC_URI += " \ + file://run-ptest \ +" + +RDEPENDS_${PN}-ptest += " \ + ${PYTHON_PN}-pytest \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/testing + cp -rf ${S}/testing/* ${D}${PTEST_PATH}/testing/ +} diff --git a/meta-python/recipes-devtools/python/python3-pluggy/run-ptest b/meta-python/recipes-devtools/python/python3-pluggy/run-ptest new file mode 100644 index 0000000000..40c284799d --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pluggy/run-ptest @@ -0,0 +1,2 @@ +#!/bin/sh +pytest |