mirror of
https://github.com/getsentry/self-hosted.git
synced 2025-12-08 19:46:14 +00:00
fix: Fix .env path for test scripts (#928)
This commit is contained in:
parent
f3d0e3d193
commit
60e947d4f7
@ -6,7 +6,7 @@ log_file="sentry_install_log-`date +'%Y-%m-%d_%H-%M-%S'`.txt"
|
||||
exec &> >(tee -a "$log_file")
|
||||
|
||||
# Work from /install/ for install.sh, project root otherwise
|
||||
if [[ "$(basename $0)" = "install.sh" ]]; then
|
||||
if [[ "$(basename $0)" = "install.sh" || "$(basename $0)" = "test.sh" ]]; then
|
||||
cd "$(dirname $0)/install/"
|
||||
else
|
||||
cd "$(dirname $0)" # assume we're a *-test.sh script
|
||||
|
||||
2
test.sh
2
test.sh
@ -38,7 +38,7 @@ echo "${_endgroup}"
|
||||
|
||||
echo "${_group}Starting Sentry for tests ..."
|
||||
# Disable beacon for e2e tests
|
||||
echo 'SENTRY_BEACON=False' >> sentry/sentry.conf.py
|
||||
echo 'SENTRY_BEACON=False' >> $SENTRY_CONFIG_PY
|
||||
$dcr web createuser --superuser --email $TEST_USER --password $TEST_PASS || true
|
||||
$dc up -d
|
||||
printf "Waiting for Sentry to be up"; timeout 60 bash -c 'until $(curl -Isf -o /dev/null $SENTRY_TEST_HOST); do printf '.'; sleep 0.5; done'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user