Skip to content

Commit

Permalink
dev-python/numpy: skip arm features test on armv8 (arm32 chroot on ar…
Browse files Browse the repository at this point in the history
…m64)

Closes: https://bugs.gentoo.org/774108
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
thesamesam committed Nov 19, 2021
1 parent 3d150b1 commit e6878da
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dev-python/numpy/numpy-1.21.3-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,14 @@ python_test() {
numpy/typing/tests/test_typing.py::test_reveal[arrayterator.py]
)

if use arm && [[ $(uname -m) == "armv8l" ]] ; then
# Degenerate case. arm32 chroot on arm64.
# bug #774108
deselect+=(
numpy/core/tests/test_cpu_features.py::Test_ARM_Features::test_features
)
fi

distutils_install_for_testing --single-version-externally-managed \
--record "${TMPDIR}/record.txt" ${NUMPY_FCONFIG}

Expand Down
8 changes: 8 additions & 0 deletions dev-python/numpy/numpy-1.21.4-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,14 @@ python_test() {
numpy/typing/tests/test_typing.py::test_reveal[arrayterator.py]
)

if use arm && [[ $(uname -m) == "armv8l" ]] ; then
# Degenerate case. arm32 chroot on arm64.
# bug #774108
deselect+=(
numpy/core/tests/test_cpu_features.py::Test_ARM_Features::test_features
)
fi

distutils_install_for_testing --single-version-externally-managed \
--record "${TMPDIR}/record.txt" ${NUMPY_FCONFIG}

Expand Down
8 changes: 8 additions & 0 deletions dev-python/numpy/numpy-1.21.4.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,14 @@ python_test() {
numpy/typing/tests/test_typing.py::test_reveal[arrayterator.py]
)

if use arm && [[ $(uname -m) == "armv8l" ]] ; then
# Degenerate case. arm32 chroot on arm64.
# bug #774108
deselect+=(
numpy/core/tests/test_cpu_features.py::Test_ARM_Features::test_features
)
fi

distutils_install_for_testing --single-version-externally-managed \
--record "${TMPDIR}/record.txt" ${NUMPY_FCONFIG}

Expand Down

0 comments on commit e6878da

Please sign in to comment.