diff options
| author | Gyorgy Sarvari <skandigraun@gmail.com> | 2026-01-07 20:17:20 +0100 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2026-01-12 08:53:46 -0800 |
| commit | b92c4e249b5e077cdb244d94719ccf1f0e1ce3f7 (patch) | |
| tree | e14d37d86a92ffde41506616688be9fba6bdcc03 /meta-python | |
| parent | 63ae47a70d6d81937f5122c535d890678ed3c13e (diff) | |
| download | meta-openembedded-b92c4e249b5e077cdb244d94719ccf1f0e1ce3f7.tar.gz | |
python3-h2: remove ptest execution deadline
Hypothesis Python module applies a 200ms default timeout value on
the tests, that can be violated too easily in qemu without kvm support.
Hypothesis however also has a feature, that in case it is running in a CI
environment, it expects that the host has more load, and it removes this
deadline.
To switch to the CI profile and relax the execution timeouts, this patch
defines the "CI" environment variable in the run-ptest script.
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python')
| -rw-r--r-- | meta-python/recipes-connectivity/python-h2/python3-h2_4.3.0.bb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta-python/recipes-connectivity/python-h2/python3-h2_4.3.0.bb b/meta-python/recipes-connectivity/python-h2/python3-h2_4.3.0.bb index db181dc0b4..4034ffe7c1 100644 --- a/meta-python/recipes-connectivity/python-h2/python3-h2_4.3.0.bb +++ b/meta-python/recipes-connectivity/python-h2/python3-h2_4.3.0.bb | |||
| @@ -10,3 +10,9 @@ inherit ptest-python-pytest pypi python_setuptools_build_meta | |||
| 10 | 10 | ||
| 11 | RDEPENDS:${PN} += "python3-hpack python3-hyperframe" | 11 | RDEPENDS:${PN} += "python3-hpack python3-hyperframe" |
| 12 | RDEPENDS:${PN}-ptest += "python3-hypothesis" | 12 | RDEPENDS:${PN}-ptest += "python3-hypothesis" |
| 13 | |||
| 14 | do_install_ptest:append(){ | ||
| 15 | # by defining CI envvar, hypothesis will use the CI-profile by default, | ||
| 16 | # and will not use tight execution deadlines (which times out easily on qemu without kvm) | ||
| 17 | sed -i 's/pytest/CI=1 pytest/' ${D}${PTEST_PATH}/run-ptest | ||
| 18 | } | ||
