mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix(docker): use logging.prod.conf for sharness
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
409229739e
commit
7831503c19
3 changed files with 10 additions and 1 deletions
|
@ -275,7 +275,7 @@ services:
|
|||
init: true
|
||||
environment:
|
||||
- AUR_CONFIG=conf/config.sqlite
|
||||
entrypoint: /docker/test-sqlite-entrypoint.sh
|
||||
entrypoint: /docker/sharness-entrypoint.sh
|
||||
command: /docker/scripts/run-sharness.sh
|
||||
stdin_open: true
|
||||
tty: true
|
||||
|
|
|
@ -6,7 +6,10 @@ dir=$(dirname $0)
|
|||
make -C test clean
|
||||
|
||||
# Run sharness tests.
|
||||
cp -vf logging.conf logging.conf.bak
|
||||
cp -vf logging.prod.conf logging.conf
|
||||
bash $dir/run-sharness.sh
|
||||
cp -vf logging.conf.bak logging.conf
|
||||
|
||||
# Run Python tests with MariaDB database.
|
||||
# Pass --silence to avoid reporting coverage. We will do that below.
|
||||
|
|
6
docker/sharness-entrypoint.sh
Executable file
6
docker/sharness-entrypoint.sh
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
set -eou pipefail
|
||||
|
||||
cp -vf logging.prod.conf logging.conf
|
||||
|
||||
exec "$@"
|
Loading…
Add table
Reference in a new issue