#!/bin/sh -ex

pkg=packagename
if [ "$ADTTMP" = "" ] ; then
	ADTTMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
fi
cd "$ADTTMP"


SKIPS=
# if [ "$(id -u)" -eq 0 ]; then
# 	SKIPS="-k 'not TestUdocker and not test_use_metadata'"
# else
# 	SKIPS="-k 'not test_use_metadata'"
# fi
py.test-3 --numprocesses=auto --dist=loadfile --ignore=cwltool/schemas \
	-k 'not TestUdocker and not test_use_metadata' --pyarg cwltool
