-- Fix dipy test runner for FreeBSD ports environment. -- The source tarball ships read-only for_testing/for_testing_results directories, -- so use mkdir -p. The globally installed pytest-relaxed plugin causes -- collection errors in dipy modules that use yield generators; disable it. -- Skip dipy/nn/tests because they download multi-gigabyte pretrained models -- and are killed by OOM during port builds. --- tools/ci/run_tests.sh.orig 2026-07-30 16:02:38 UTC +++ tools/ci/run_tests.sh @@ -8,8 +8,8 @@ echo "Run the tests" echo "Run the tests" # Change into an innocuous directory and find tests from installation -mkdir for_testing_results -mkdir for_testing +mkdir -p for_testing_results +mkdir -p for_testing cd for_testing # We need the setup.cfg for the pytest settings cp ../pyproject.toml . @@ -20,14 +20,14 @@ if [ "$COVERAGE" == "1" ] || [ "$COVERAGE" == true ]; cp ../.codecov.yml .; chmod -R a-w . # Run the tests and check for test coverage. - coverage run --data-file=../for_testing_results/.coverage -m pytest -o cache_dir=../for_testing_results -c pyproject.toml -svv --doctest-modules --verbose --durations=10 --pyargs dipy + coverage run --data-file=../for_testing_results/.coverage -m pytest -o cache_dir=../for_testing_results -c pyproject.toml -svv -p no:relaxed --verbose --durations=10 --ignore-glob='*/dipy/nn/tests' --pyargs dipy chmod -R a+w . cd ../for_testing_results coverage report -m # Generate test coverage report. coverage xml # Generate coverage report in xml format for codecov upload. else chmod -R a-w . - pytest -o cache_dir=../for_testing_results -c pyproject.toml -svv --doctest-modules --verbose --durations=10 --pyargs dipy + pytest -o cache_dir=../for_testing_results -c pyproject.toml -svv -p no:relaxed --verbose --durations=10 --ignore-glob='*/dipy/nn/tests' --pyargs dipy chmod -R a+w . fi cd ..