run.sh 285 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
MAKEDIR="$(dirname "$0")"

LDPRELOAD=$(make depend -C "${MAKEDIR}")

source ${MAKEDIR}/env.sh

py.test -q tests/test_runner.py "$@"

RETVAL=$?

if [[ $RETVAL -eq 4 && "$@" =~ .*-n.* ]]
then
    echo "Running on multiple cores failed. Is pytest-xdist module installed?"
fi

exit $RETVAL