mirror of
https://git.yoctoproject.org/poky
synced 2026-02-05 08:18:43 +01:00
This test fails [1] with x86-64-v3, surfaces when we switch default tune for qemux86-64 to be x86-64-v3 or newer Test seems to compare exact floating point numbers but it might not be precise enough and comparison may fail. [1] https://github.com/numpy/numpy/issues/27460 (From OE-Core rev: aaf986bfa93b91a64cbf1c4e23b7fe961bdbb1f7) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 lines
940 B
Bash
18 lines
940 B
Bash
#!/bin/sh
|
|
|
|
# By default, numpy will use /tmp as the root path for temporary files used
|
|
# during tests, but if this is a tmpfs it may fill up quickly and cause many of
|
|
# the tests to report "no space left on device" errors. Create a custom
|
|
# directory for these and point pytest at it so we can take advantage of the
|
|
# storage provided in the rootfs.
|
|
export PYTEST_DEBUG_TEMPROOT="/usr/lib/python3-numpy/ptest/tmp"
|
|
mkdir -p "$PYTEST_DEBUG_TEMPROOT"
|
|
|
|
# test_mem_policy fails if there's no C compiler present, but we don't want to
|
|
# include gcc as a ptest dependency, so skip that. test_big_arrays uses up a
|
|
# large amount of storage, so skip that too.
|
|
# remove test_validate_transcendentals if
|
|
# https://github.com/numpy/numpy/issues/27460 is resolved
|
|
pytest --automake -m "not slow" -k "not test_mem_policy and not test_big_arrays and not test_validate_transcendentals" /usr/lib/python3.*/site-packages/numpy
|
|
rm -rf "$PYTEST_DEBUG_TEMPROOT"
|