python3-precise-runner: 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:
Derek Straka
2025-01-17 20:30:29 +00:00
committed by Khem Raj
parent 966a1f6f67
commit 6bf9389c43
2 changed files with 2 additions and 17 deletions

View File

@@ -1,3 +0,0 @@
#!/bin/sh
pytest --automake

View File

@@ -5,18 +5,6 @@ LIC_FILES_CHKSUM = "file://README.md;md5=2ad29e930f3107d52d2a55728bf62116"
SRC_URI[sha256sum] = "1a464209fb4bf0a3f5d5a428310cb2a70487a01a6bc3a960d1dda90af896b80d"
inherit pypi setuptools3 ptest
inherit pypi setuptools3 ptest-python-pytest
SRC_URI += " \
file://run-ptest \
"
RDEPENDS:${PN}-ptest += " \
python3-pytest \
python3-unittest-automake-output \
"
do_install_ptest() {
install -d ${D}${PTEST_PATH}/test
cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/
}
PTEST_PYTEST_DIR = "test"