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 \ | |||
11 | ${PYTHON_PN}-more-itertools \ | 11 | ${PYTHON_PN}-more-itertools \ |
12 | " | 12 | " |
13 | 13 | ||
14 | inherit pypi | 14 | inherit pypi ptest |
15 | |||
16 | SRC_URI += " \ | ||
17 | file://run-ptest \ | ||
18 | " | ||
19 | |||
20 | RDEPENDS_${PN}-ptest += " \ | ||
21 | ${PYTHON_PN}-pytest \ | ||
22 | " | ||
23 | |||
24 | do_install_ptest() { | ||
25 | install -d ${D}${PTEST_PATH}/testing | ||
26 | cp -rf ${S}/testing/* ${D}${PTEST_PATH}/testing/ | ||
27 | } | ||
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 @@ | |||
1 | #!/bin/sh | ||
2 | pytest | ||