#!/bin/sh

set -x

for py in $(py3versions -s 2>/dev/null)
do
    $py -m pytest
done

EXIT_CODE=$?

# Tests on ppc64el are failing for reasons that may be related to a dependency,
# so we are allowing that failure.

DPKGARCH=$(dpkg --print-architecture)

if [ "$DPKGARCH" = ppc64el ]; then
    exit 77
else
    exit $EXIT_CODE
fi
