summaryrefslogtreecommitdiff
path: root/test/run-postgres.sh
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2023-08-08 12:26:34 +0100
committerLibravatar GitHub <noreply@github.com>2023-08-08 12:26:34 +0100
commit3920bc87d1398893feda21f32e4f59129b2cc9cd (patch)
treeed5a6651e034fd551f03dcfcf42b9c61a796e001 /test/run-postgres.sh
parent[chore] Update robots.txt, give chatgpt the middle finger (#2085) (diff)
downloadgotosocial-3920bc87d1398893feda21f32e4f59129b2cc9cd.tar.xz
[bugfix] don't accept unrelated statuses (#2078)
Co-authored-by: Daenney <daenney@users.noreply.github.com> Co-authored-by: tsmethurst <tobi.smethurst@protonmail.com>
Diffstat (limited to 'test/run-postgres.sh')
-rwxr-xr-xtest/run-postgres.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/run-postgres.sh b/test/run-postgres.sh
index 54e4970ed..029a72793 100755
--- a/test/run-postgres.sh
+++ b/test/run-postgres.sh
@@ -2,6 +2,11 @@
set -e
+# Ensure test args are set.
+ARGS=${@}; [ -z "$ARGS" ] && \
+ARGS='./...'
+
+# Database config.
DB_NAME='postgres'
DB_USER='postgres'
DB_PASS='postgres'
@@ -34,4 +39,4 @@ GTS_DB_PORT=${DB_PORT} \
GTS_DB_USER=${DB_USER} \
GTS_DB_PASSWORD=${DB_PASS} \
GTS_DB_DATABASE=${DB_NAME} \
-go test ./... -p 1 ${@} \ No newline at end of file
+go test ./... -p 1 ${ARGS} \ No newline at end of file