#!/bin/sh

set -e

runuser -u postgres -- psql -f $(pwd)/debian/tests/init.sql

cp -r t setup.cfg conftest.py ${AUTOPKGTEST_TMP}
cd ${AUTOPKGTEST_TMP}
for p in $(py3versions -s); do
    $p -m pytest -k "not test_taskresult_delete_expired and not test_on_chord_part_return_multiple_databases and not test_retry_store_result_fails and not test_retry_store_result_succeeds and not test_store_group_result"
done
