Revision 216d99439bd18608259d7a81571c94d2e4d891e5 authored by SeƱor Performo - Leandro Melendez on 12 July 2024, 20:47:23 UTC, committed by GitHub on 12 July 2024, 20:47:23 UTC
Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
1 parent ef624c7
Raw File
start-and-run-suite
#!/bin/bash

. scripts/grafana-server/variables

LICENSE_PATH=""

if [ "$1" = "enterprise" ]; then
    if [ "$2" != "dev" ] && [ "$2" != "debug" ]; then
      LICENSE_PATH=$2/license.jwt
    else
      LICENSE_PATH=$3/license.jwt
    fi
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
fi

./e2e/run-suite "$@"
back to top