diff options
| author | Tim Orling <ticotimo@gmail.com> | 2024-02-16 16:15:33 -0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2024-02-16 16:42:37 -0800 |
| commit | a99a06c9ede8c1098ea9b8f583cdaa8b4a895959 (patch) | |
| tree | 554d6e700aedb211146b304399dbc18a1ad65b63 /meta-python | |
| parent | 2690753907d7c3070aacd20aa933e213082a57d0 (diff) | |
| download | meta-openembedded-a99a06c9ede8c1098ea9b8f583cdaa8b4a895959.tar.gz | |
python3-parse-type: switch to pytest --automake
* Also replace ${PYTHON_PN} with python3
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-parse-type/run-ptest | 2 | ||||
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-parse-type_0.6.2.bb | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/meta-python/recipes-devtools/python/python3-parse-type/run-ptest b/meta-python/recipes-devtools/python/python3-parse-type/run-ptest index b63c4de0d9..8d2017d39c 100644 --- a/meta-python/recipes-devtools/python/python3-parse-type/run-ptest +++ b/meta-python/recipes-devtools/python/python3-parse-type/run-ptest | |||
| @@ -1,3 +1,3 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | 2 | ||
| 3 | pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}' | 3 | pytest --automake |
diff --git a/meta-python/recipes-devtools/python/python3-parse-type_0.6.2.bb b/meta-python/recipes-devtools/python/python3-parse-type_0.6.2.bb index 99493db322..a7d8cd86ce 100644 --- a/meta-python/recipes-devtools/python/python3-parse-type_0.6.2.bb +++ b/meta-python/recipes-devtools/python/python3-parse-type_0.6.2.bb | |||
| @@ -8,14 +8,15 @@ SRC_URI[sha256sum] = "79b1f2497060d0928bc46016793f1fca1057c4aacdf15ef876aa48d75a | |||
| 8 | PYPI_PACKAGE = "parse_type" | 8 | PYPI_PACKAGE = "parse_type" |
| 9 | inherit pypi ptest setuptools3 | 9 | inherit pypi ptest setuptools3 |
| 10 | 10 | ||
| 11 | RDEPENDS:${PN} += "${PYTHON_PN}-parse" | 11 | RDEPENDS:${PN} += "python3-parse" |
| 12 | 12 | ||
| 13 | SRC_URI += " \ | 13 | SRC_URI += " \ |
| 14 | file://run-ptest \ | 14 | file://run-ptest \ |
| 15 | " | 15 | " |
| 16 | 16 | ||
| 17 | RDEPENDS:${PN}-ptest += " \ | 17 | RDEPENDS:${PN}-ptest += " \ |
| 18 | ${PYTHON_PN}-pytest \ | 18 | python3-pytest \ |
| 19 | python3-unittest-automake-output \ | ||
| 19 | " | 20 | " |
| 20 | 21 | ||
| 21 | do_install_ptest() { | 22 | do_install_ptest() { |
