unwind/scripts/tests

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
388 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" "${dbfile}-shm" "${dbfile}-wal"' EXIT TERM INT QUIT
2021-06-21 18:54:03 +02:00
[ -z "${DEBUG:-}" ] || set -x
UNWIND_STORAGE="$dbfile" \
2024-05-10 00:13:01 +02:00
exec poetry run pytest --cov "$@"