diff options
Diffstat (limited to 'meta-python/recipes-devtools')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-filelock/run-ptest | 6 | ||||
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-filelock_3.20.2.bb | 9 |
2 files changed, 14 insertions, 1 deletions
diff --git a/meta-python/recipes-devtools/python/python3-filelock/run-ptest b/meta-python/recipes-devtools/python/python3-filelock/run-ptest new file mode 100644 index 0000000000..88654deb70 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-filelock/run-ptest | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | # Some tests require non-root | ||
| 4 | useradd tester || echo test user exists already | ||
| 5 | |||
| 6 | su tester -c "pytest --automake" | ||
diff --git a/meta-python/recipes-devtools/python/python3-filelock_3.20.2.bb b/meta-python/recipes-devtools/python/python3-filelock_3.20.2.bb index 75eb16635c..2a0af552b6 100644 --- a/meta-python/recipes-devtools/python/python3-filelock_3.20.2.bb +++ b/meta-python/recipes-devtools/python/python3-filelock_3.20.2.bb | |||
| @@ -5,11 +5,12 @@ HOMEPAGE = "https://py-filelock.readthedocs.io/" | |||
| 5 | LICENSE = "Unlicense" | 5 | LICENSE = "Unlicense" |
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=911690f51af322440237a253d695d19f" | 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=911690f51af322440237a253d695d19f" |
| 7 | 7 | ||
| 8 | SRC_URI += "file://run-ptest" | ||
| 8 | SRC_URI[sha256sum] = "a2241ff4ddde2a7cebddf78e39832509cb045d18ec1a09d7248d6bfc6bfbbe64" | 9 | SRC_URI[sha256sum] = "a2241ff4ddde2a7cebddf78e39832509cb045d18ec1a09d7248d6bfc6bfbbe64" |
| 9 | 10 | ||
| 10 | BBCLASSEXTEND = "native nativesdk" | 11 | BBCLASSEXTEND = "native nativesdk" |
| 11 | 12 | ||
| 12 | inherit pypi python_hatchling | 13 | inherit pypi python_hatchling ptest-python-pytest |
| 13 | 14 | ||
| 14 | DEPENDS += "\ | 15 | DEPENDS += "\ |
| 15 | python3-hatch-vcs-native \ | 16 | python3-hatch-vcs-native \ |
| @@ -20,3 +21,9 @@ RDEPENDS:${PN} += " \ | |||
| 20 | python3-logging \ | 21 | python3-logging \ |
| 21 | python3-asyncio \ | 22 | python3-asyncio \ |
| 22 | " | 23 | " |
| 24 | |||
| 25 | RDEPENDS:${PN}-ptest += " \ | ||
| 26 | python3-pytest-asyncio \ | ||
| 27 | python3-pytest-mock \ | ||
| 28 | python3-virtualenv \ | ||
| 29 | " | ||
