diff options
Diffstat (limited to 'meta-python')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-pytest-lazy-fixture/run-ptest | 3 | ||||
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-pytest-lazy-fixture_0.6.3.bb | 23 |
2 files changed, 26 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pytest-lazy-fixture/run-ptest b/meta-python/recipes-devtools/python/python3-pytest-lazy-fixture/run-ptest new file mode 100644 index 0000000000..b63c4de0d9 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pytest-lazy-fixture/run-ptest | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | #!/bin/sh | ||
| 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}}' | ||
diff --git a/meta-python/recipes-devtools/python/python3-pytest-lazy-fixture_0.6.3.bb b/meta-python/recipes-devtools/python/python3-pytest-lazy-fixture_0.6.3.bb new file mode 100644 index 0000000000..32b5677f1a --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pytest-lazy-fixture_0.6.3.bb | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | # Copyright (C) 2022 Wind River Systems | ||
| 2 | |||
| 3 | SUMMARY = "Use your fixtures in @pytest.mark.parametrize." | ||
| 4 | HOMEPAGE = "https://github.com/tvorog/pytest-lazy-fixture" | ||
| 5 | LICENSE = "MIT" | ||
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=aae6f2b7c9b3ced83e0b5bb42346d4dd" | ||
| 7 | |||
| 8 | SRC_URI[sha256sum] = "0e7d0c7f74ba33e6e80905e9bfd81f9d15ef9a790de97993e34213deb5ad10ac" | ||
| 9 | |||
| 10 | SRC_URI += "file://run-ptest \ | ||
| 11 | " | ||
| 12 | |||
| 13 | |||
| 14 | inherit ptest pypi setuptools3 | ||
| 15 | |||
| 16 | do_install_ptest() { | ||
| 17 | install -d ${D}${PTEST_PATH}/tests | ||
| 18 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
| 19 | } | ||
| 20 | |||
| 21 | |||
| 22 | RDEPENDS:${PN} += "python3-core python3-pytest" | ||
| 23 | RDEPENDS:${PN}-ptest = " python3-unixadmin" | ||
