#!/usr/bin/env sh

dpkgarch=$(dpkg --print-architecture)

MIN_COVERAGE=86
cp -r tests $AUTOPKGTEST_TMP
cd $AUTOPKGTEST_TMP
if [ "$dpkgarch" = i386 ]; then
	python3 -m pytest --cov=pillowfight --cov-report=term-missing --cov-fail-under=$MIN_COVERAGE --cov-branch -k "not test_all_2 and not test_swt2" tests/*.py
else
	python3 -m pytest --cov=pillowfight --cov-report=term-missing --cov-fail-under=$MIN_COVERAGE --cov-branch tests/*.py
fi
