Update is_platform_arm() to detect 32-bit arm and other variants #44225
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When running an arm32 ("linux32'd") chroot on an arm64 machine,
Python's platform.machine() will return "armv8l".
In other cases, on "real" arm32, it'll return whatever uname says
(just like in the first case) which might be e.g. armv7a.
Keeping the other options ("aarch64", "arm64") given that Windows
or other kernels might choose to return different values and these
were added for a reason, but at least this fixes detection on Linux.
This allows tests like test_subtype_integer_errors to be skipped
as intended on arm.
Bug: https://bugs.gentoo.org/818964
Signed-off-by: Sam James sam@gentoo.org