run.sh 346 Bytes
Newer Older
Petr Špaček's avatar
Petr Špaček committed
1 2
#!/bin/bash
set -o errexit -o nounset
3

Petr Špaček's avatar
Petr Špaček committed
4 5 6 7
MAKEDIR="$(dirname "$0")"
rm -f "${MAKEDIR}/env.sh"
LDPRELOAD="$(make depend -C "${MAKEDIR}")"
source "${MAKEDIR}/env.sh"
8

9 10 11
# compatibility with old TESTS= env variable
# add --scenarios= only if the variable TESTS is non-empty
python3 -m pytest -q tests/test_runner.py ${TESTS:+"--scenarios=${TESTS}"} "$@"