| 1 | #!/bin/sh |
| 2 | set -efu |
| 3 | |
| 4 | pys="$(py3versions -s 2> /dev/null)" |
| 5 | |
| 6 | # copy test files into an empty dir |
| 7 | cp -va fsspec/tests "$AUTOPKGTEST_TMP"/tests |
| 8 | cp -va fsspec/implementations/tests "$AUTOPKGTEST_TMP"/implementations_tests |
| 9 | cp -va fsspec/conftest.py "$AUTOPKGTEST_TMP"/ |
| 10 | |
| 11 | sed -i 's/fsspec.tests.test_spec.DummyTestFS/tests.test_spec.DummyTestFS/g' "$AUTOPKGTEST_TMP"/tests/test_spec.py |
| 12 | |
| 13 | cd "$AUTOPKGTEST_TMP" |
| 14 | |
| 15 | for py in $pys; do |
| 16 | echo "=== $py ===" |
| 17 | $py -m pytest tests/ --ignore tests/test_fuse.py |
| 18 | $py -m pytest -k 'not test_find_returns_expected_result_detail_true_include_dirs and not test_find_returns_expected_result_detail_true and not test_async_cat_file_ranges' implementations_tests/ --ignore implementations_tests/test_github.py |
| 19 | done |