#!/bin/sh
set -e
cp -r test* "$AUTOPKGTEST_TMP/" && cd "$AUTOPKGTEST_TMP"
PYTEST_ARGS="-v --asyncio-mode=auto -x"
if [ "$(dpkg --print-architecture)" = "riscv64" ]; then
    # This test has a hard-coded 2s multiprocessing timeout which is too
    # tight on riscv64 debci workers.
    PYTEST_ARGS="$PYTEST_ARGS -k not test_iterate_empty_psml_capture"
fi
for py in $(py3versions -s); do
    $py -Wd -m pytest $PYTEST_ARGS 2>&1
done
