#!/bin/sh -e

export XDG_RUNTIME_DIR=$AUTOPKGTEST_TMP/runtime
export HOME=$AUTOPKGTEST_TMP/home
mkdir -p $XDG_RUNTIME_DIR $HOME
chmod 0700 $XDG_RUNTIME_DIR

for py in $(py3versions -s)
do
    echo "Testing with $py"
    $py -m pytest tests $PYTEST_OPTIONS
done
