mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-09-02 16:30:22 +00:00
tests/ imports itself as "tests.*" and pulls in "capabilities" from the sibling tasks/ dir; upstream's pyproject.toml sets [tool.pytest] pythonpath = [".", "tasks"] to make both resolve, so ship tasks/ and pyproject.toml into the ptest install too. Also disable pytest's cache plugin: the non-root "tester" user ptest runs as can't write a cache dir under the read-only-to-them /usr/lib/python3-filelock/ptest install path. Add python3-pytest-timeout, used by the test suite. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 lines
287 B
Bash
9 lines
287 B
Bash
#!/bin/sh
|
|
|
|
# Some tests require non-root
|
|
useradd tester || echo test user exists already
|
|
|
|
# tester can't write pytest's cache dir under the read-only-to-them
|
|
# /usr/lib/python3-filelock/ptest install path; disable it, it's not needed
|
|
su tester -c "pytest --automake -p no:cacheprovider"
|