#!/bin/sh

# Exit on error
set -e

# Copy the compiled bootloader from the installed package to the auotpkgtest directory.
cp -R /usr/lib/python3/dist-packages/PyInstaller/bootloader/ PyInstaller/

# Run the upstream tests.
for p in $(py3versions -s); do \
    $p -m pytest tests -k "not test_find_module \
    and not test_Qt_QTranslate \
    and not test_scapy3 \
    and not test_gevent\
    and not test_user_preferred_locale \
    and not test_zope_interface\
    and not test_pytz"; \
done