diff options
| author | Derek Straka <derek@asterius.io> | 2024-12-18 18:05:47 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-01-08 12:37:20 +0000 |
| commit | 095beae0085c94a105256b6df4bd71bd4a506104 (patch) | |
| tree | 138d6b7f93f682cc8ac468a28c6f2ce86a6d165f /meta/files/ptest-python-pytest/run-ptest | |
| parent | 5375cd0318124a1d14f09d075cc23c31216953e0 (diff) | |
| download | poky-095beae0085c94a105256b6df4bd71bd4a506104.tar.gz | |
classes/ptest-python-pytest: add a new class to consolidate pytest ptest functionality
A large number of python packages leverage the pytest unit test
framework for their ptest functionality. Currently, many of the tests
have duplicate code for:
1. Installing pytest files
2. Declaring ptest dependencies
3. Script for executing tests (run-ptes)
To simplify adding common pytest based ptests, added a new class
enabling base functionality. Users can also override the location of
the pytest files in addition to using their own version of run-ptest
[RP: Minor whitespace tweaks to shell function and missing prepend space]
(From OE-Core rev: d66009e608256d42b2d6573d4614a99eb13fd3f1)
Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/files/ptest-python-pytest/run-ptest')
| -rwxr-xr-x | meta/files/ptest-python-pytest/run-ptest | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/files/ptest-python-pytest/run-ptest b/meta/files/ptest-python-pytest/run-ptest new file mode 100755 index 0000000000..8d2017d39c --- /dev/null +++ b/meta/files/ptest-python-pytest/run-ptest | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | pytest --automake | ||
