unwind/scripts/tests

15 lines
344 B
Text
Raw Normal View History

2021-06-21 18:54:03 +02:00
#!/bin/sh -eu
cd "$RUN_DIR"
2021-12-19 19:30:08 +01:00
dbfile="${UNWIND_DATA:-./data}/tests.sqlite"
2021-12-19 19:30:08 +01:00
# Rollback in Databases is currently broken, so we have to rebuild the database
# each time; see https://github.com/encode/databases/issues/403
trap 'rm "$dbfile"' EXIT TERM INT QUIT
2021-06-21 18:54:03 +02:00
[ -z "${DEBUG:-}" ] || set -x
UNWIND_STORAGE="$dbfile" \
python -m pytest "$@"