#!/bin/sh
set -e
cp -r pyproject.toml tests "$AUTOPKGTEST_TMP/" && cd "$AUTOPKGTEST_TMP"
find . -type f -name "*.py" -exec sed -i 's/^from Crypto\./from Cryptodome./g' {} +
for py in $(py3versions -s); do
    $py -Wd -m pytest -v -x --no-cov --ignore=tests/test_api.py --ignore=tests/test_a01_api.py -k "not test_device_trait_command_parsing" --snapshot-warn-unused 2>&1
done
