From 9a156a9f064b54f0d43e08ebd8128c5641eac510 Mon Sep 17 00:00:00 2001 From: Zang Ruochen Date: Thu, 2 Apr 2020 09:38:32 +0800 Subject: python3-pluggy: Enable ptest Signed-off-by: Zang Ruochen Signed-off-by: Khem Raj --- meta-python/recipes-devtools/python/python-pluggy.inc | 15 ++++++++++++++- .../recipes-devtools/python/python3-pluggy/run-ptest | 2 ++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 meta-python/recipes-devtools/python/python3-pluggy/run-ptest 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 -- cgit v1.2.3-54-g00ecf