#!/bin/sh -ex

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

export HOME=${AUTOPKGTEST_TMP}

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 --ignore=cwltool/schemas -rs \
	-k 'not (test_udocker_usage_should_not_write_cid_file or test_udocker_should_display_memory_usage)' \
	--pyargs cwltool
