Skip to content

Commit

Permalink
python3-multidict: Fix running ptests
Browse files Browse the repository at this point in the history
Add missing runtime dependency on pytest-cov
and move the test to PTESTS_FAST_META_PYTHON since it takes < 20 seconds

Signed-off-by: Khem Raj <[email protected]>
  • Loading branch information
kraj committed Jan 21, 2024
1 parent 919cfc5 commit 9953ca1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ PTESTS_FAST_META_PYTHON = "\
python3-intervals \
python3-ipy \
python3-iso3166 \
python3-multidict \
python3-parse-type \
python3-platformdirs \
python3-polyline \
Expand Down Expand Up @@ -71,7 +72,6 @@ PTESTS_PROBLEMS_META_PYTHON ="\
python3-jsmin \
python3-license-expression \
python3-msgpack \
python3-multidict \
python3-ordered-set \
python3-parse \
python3-pillow \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
#!/bin/sh

pytest
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}}'
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ SRC_URI += " \

RDEPENDS:${PN}-ptest += " \
${PYTHON_PN}-pytest \
${PYTHON_PN}-pytest-cov \
"

do_install_ptest() {
Expand Down

0 comments on commit 9953ca1

Please sign in to comment.