Playwright: Gate server start up with GRAFANA_URL env var (#108302)

* refactor so server is created unless GRAFANA_URL is provided

* update documentation

* don't swallow errors from the server process
This commit is contained in:
Ashley Harrison
2025-07-18 17:08:47 +01:00
committed by GitHub
parent a7a17c6929
commit 2d1fb94f2d
9 changed files with 32 additions and 19 deletions
@@ -15,9 +15,6 @@ fi
if [ "$BASE_URL" != "" ]; then
echo -e "BASE_URL set, skipping starting server"
else
# Start it in the background
./scripts/grafana-server/start-server $LICENSE_PATH 2>&1 > scripts/grafana-server/server.log &
./scripts/grafana-server/wait-for-grafana
./scripts/grafana-server/start-server $LICENSE_PATH > scripts/grafana-server/server.log
fi
PORT=3001 HOST=localhost yarn playwright test