mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
This script purely removes any existing sqlite and is used before tests are run. This causes the test flow to run `aurweb.initdb` again (if ever). Signed-off-by: Kevin Morris <kevr@0cost.org>
7 lines
258 B
Bash
Executable file
7 lines
258 B
Bash
Executable file
#!/bin/bash
|
|
# Run an sqlite test. This script really just prepares sqlite
|
|
# tests by deleting any existing databases so the test can
|
|
# initialize cleanly.
|
|
DB_NAME="$(grep 'name =' conf/config.sqlite | sed -r 's/^name = (.+)$/\1/')"
|
|
rm -vf $DB_NAME
|
|
exec "$@"
|