diff options
author | Ross Burton <ross.burton@arm.com> | 2023-03-21 12:37:39 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-03-21 22:42:05 +0000 |
commit | 88a7b8fa65cb6754a30a15f9928d5c29a6d0f6e0 (patch) | |
tree | 14b75531e7b5b1b7154301cf073f0ada6bdb8d07 /meta | |
parent | a299f7c59119e1e1d227632a4d4d298b5e9fe5a7 (diff) | |
download | poky-88a7b8fa65cb6754a30a15f9928d5c29a6d0f6e0.tar.gz |
python3-more-itertools: use python3-unittest-automake-output
Instead of using sed to reformat the output use this new module. The
tests also need the statistics module so add this missing dependency.
(From OE-Core rev: 68cc7d5343ee3617fd708954f55f0f2fc29390b3)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/python/python3-more-itertools/run-ptest | 2 | ||||
-rw-r--r-- | meta/recipes-devtools/python/python3-more-itertools_9.1.0.bb | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/meta/recipes-devtools/python/python3-more-itertools/run-ptest b/meta/recipes-devtools/python/python3-more-itertools/run-ptest index 3385d68939..8d2017d39c 100644 --- a/meta/recipes-devtools/python/python3-more-itertools/run-ptest +++ b/meta/recipes-devtools/python/python3-more-itertools/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/SKIPED/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/recipes-devtools/python/python3-more-itertools_9.1.0.bb b/meta/recipes-devtools/python/python3-more-itertools_9.1.0.bb index 7602350795..f5d107c78d 100644 --- a/meta/recipes-devtools/python/python3-more-itertools_9.1.0.bb +++ b/meta/recipes-devtools/python/python3-more-itertools_9.1.0.bb | |||
@@ -16,7 +16,9 @@ RDEPENDS:${PN} += " \ | |||
16 | " | 16 | " |
17 | 17 | ||
18 | RDEPENDS:${PN}-ptest += " \ | 18 | RDEPENDS:${PN}-ptest += " \ |
19 | ${PYTHON_PN}-statistics \ | ||
19 | ${PYTHON_PN}-pytest \ | 20 | ${PYTHON_PN}-pytest \ |
21 | ${PYTHON_PN}-unittest-automake-output \ | ||
20 | " | 22 | " |
21 | 23 | ||
22 | do_install_ptest() { | 24 | do_install_ptest() { |