diff options
| author | Gyorgy Sarvari <skandigraun@gmail.com> | 2026-01-09 19:03:22 +0100 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2026-01-12 08:53:50 -0800 |
| commit | b891bc7cacaa3b80974affc1fafd02121c7079bb (patch) | |
| tree | d53a7f266404d03afb78b50e4ecf4d8aabea3008 /meta-python/recipes-devtools/python/python3-filelock | |
| parent | 9291faa9192e70ff1f05d6551a562960bdc99630 (diff) | |
| download | meta-openembedded-b891bc7cacaa3b80974affc1fafd02121c7079bb.tar.gz | |
python3-filelock: add ptest support
The tests take <15s to execute.
Sample output:
root@qemux86-64:~# ptest-runner
START: ptest-runner
2026-01-09T18:00
BEGIN: /usr/lib/python3-filelock/ptest
PASS: tests/test_async_filelock.py:test_simple[a-str-AsyncUnixFileLock]
PASS: tests/test_async_filelock.py:test_simple[a-str-AsyncSoftFileLock]
PASS: tests/test_async_filelock.py:test_simple[a-PurePath-AsyncUnixFileLock]
PASS: tests/test_async_filelock.py:test_simple[a-PurePath-AsyncSoftFileLock]
PASS: tests/test_async_filelock.py:test_simple[a-Path-AsyncUnixFileLock]
PASS: tests/test_async_filelock.py:test_simple[a-Path-AsyncSoftFileLock]
[...many lines...]
PASS: tests/test_filelock.py:test_mtime_zero_exit_branch[SoftFileLock-TimeoutError]
PASS: tests/test_filelock.py:test_mtime_zero_exit_branch[UnixFileLock-PermissionError]
PASS: tests/test_virtualenv.py:test_virtualenv
============================================================================
Testsuite summary
DURATION: 10
END: /usr/lib/python3-filelock/ptest
2026-01-09T18:00
STOP: ptest-runner
TOTAL: 1 FAIL: 0
(There are 20 Windows-only tests, which are skipped)
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-filelock')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-filelock/run-ptest | 6 |
1 files changed, 6 insertions, 0 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" | ||
