#!/bin/bash
set -efu

# logic copied from nipype

# 'nipype.interfaces.io.BIDSDataGrabber' obviously
# does not exists here but I don't want to waste
# too much time on s390x arch without real users.
SKIP_TEST="not nipype.interfaces.io.BIDSDataGrabber"
arch=$(dpkg-architecture -qDEB_HOST_ARCH)
# skip tests
if [ "$arch" = "s390x" ]; then
    SKIP_TEST=$SKIP_TEST" and not test_legacy_underscore_content"
fi


for py in $(py3versions --supported)
do
	$py -m pytest -k "$SKIP_TEST" -v nibabel
done

