diff options
author | Trevor Gamblin <tgamblin@baylibre.com> | 2023-10-13 13:08:00 -0400 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-10-13 13:23:05 -0700 |
commit | e0abbc52802d36cbd6e5c15c38d6649a822e6450 (patch) | |
tree | 92dbef85063481db8531508a89d3fb10cf2859fc /meta-python/recipes-devtools/python/python3-py-cpuinfo_9.0.0.bb | |
parent | ad4985d17bff8a0e8636220bf4d14c8e31ce35ca (diff) | |
download | meta-openembedded-e0abbc52802d36cbd6e5c15c38d6649a822e6450.tar.gz |
python3-py-cpuinfo: disable broken ptests
There are a handful of CLI-related ptests that consistently fail with an
apparent permissions issue, but making the
.../site-packages/cpuinfo/cpuinfo.py script executable does not seem to
fix the problem. Skip these tests for now, and make sure that the right
/usr/bin/env line is present in py-cpuinfo's scripts on the image.
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-py-cpuinfo_9.0.0.bb')
-rw-r--r-- | meta-python/recipes-devtools/python/python3-py-cpuinfo_9.0.0.bb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-py-cpuinfo_9.0.0.bb b/meta-python/recipes-devtools/python/python3-py-cpuinfo_9.0.0.bb index 5fbac03ac0..84172c058e 100644 --- a/meta-python/recipes-devtools/python/python3-py-cpuinfo_9.0.0.bb +++ b/meta-python/recipes-devtools/python/python3-py-cpuinfo_9.0.0.bb | |||
@@ -11,8 +11,16 @@ SRC_URI[sha256sum] = "3cdbbf3fac90dc6f118bfd64384f309edeadd902d7c8fb17f02ffa1fc3 | |||
11 | inherit ptest pypi setuptools3 | 11 | inherit ptest pypi setuptools3 |
12 | 12 | ||
13 | SRC_URI += "file://run-ptest \ | 13 | SRC_URI += "file://run-ptest \ |
14 | file://0001-test_cli.py-disable.patch \ | ||
14 | " | 15 | " |
15 | 16 | ||
17 | do_install:append() { | ||
18 | # Make sure we use /usr/bin/env python3 | ||
19 | for PYTHSCRIPT in `grep -rIl '^#!.*python' ${D}`; do | ||
20 | sed -i -e '1s|^#!.*|#!/usr/bin/env ${PYTHON_PN}|' $PYTHSCRIPT | ||
21 | done | ||
22 | } | ||
23 | |||
16 | do_install_ptest() { | 24 | do_install_ptest() { |
17 | install -d ${D}${PTEST_PATH}/tests | 25 | install -d ${D}${PTEST_PATH}/tests |
18 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | 26 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ |