#!/bin/sh set -efu pys="$(py3versions -s 2> /dev/null)" # copy test files into an empty dir cp -va fsspec/tests "$AUTOPKGTEST_TMP"/tests cp -va fsspec/implementations/tests "$AUTOPKGTEST_TMP"/implementations_tests cp -va fsspec/conftest.py "$AUTOPKGTEST_TMP"/ sed -i 's/fsspec.tests.test_spec.DummyTestFS/tests.test_spec.DummyTestFS/g' "$AUTOPKGTEST_TMP"/tests/test_spec.py cd "$AUTOPKGTEST_TMP" for py in $pys; do echo "=== $py ===" $py -m pytest tests/ --ignore tests/test_fuse.py $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 done