meta-openembedded/meta-python/recipes-devtools/python/python3-semver/run-ptest
Trevor Gamblin 6804adf7b0 python3-semver: upgrade 2.13.0 -> 3.0.1
- Update to point at the proper license file with correct checksum.
  Previously it was pointing at a subset of a PKG-INFO file, which was
  a legacy output from distutils
- Update build backend and include python3-setuptools-scm-native in
  DEPENDS
- Modify ptest installation and run-ptest script since the tests have
  been moved into their own folder

Changelog: https://github.com/python-semver/python-semver/releases

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-07-25 08:43:53 -07:00

442 B

#!/bin/sh

pytest -o log_cli=true -o log_cli_level=INFO tests/test_semver.py --disable-warnings| 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}}'