diff --git a/.tests/ga-backend-app.sh b/.tests/ga-backend-app.sh index 5590ecd..293fa22 100755 --- a/.tests/ga-backend-app.sh +++ b/.tests/ga-backend-app.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +LOG_FILE="$HOME/hyperglass-ci.log" + echo "[INFO] Starting setup..." poetry run hyperglass setup -d echo "[SUCCESS] Setup completed." @@ -19,8 +21,8 @@ else fi echo "[INFO] Starting hyperglass..." -poetry run hyperglass start &> $HOME/hyperglass-ci.log & -# sleep 180 +poetry run hyperglass start &> $LOG_FILE & +sleep 5 if [[ ! $? == 0 ]]; then echo "[ERROR] Failed to start hyperglass." @@ -40,9 +42,9 @@ if [[ ! $? == 0 ]]; then exit 1 elif [[ ! "$STATUS" == "200" ]]; then echo "[ERROR] HTTP test failed. Startup log:" - cat /var/log/hyperglassci.log + cat $LOG_FILE exit 1 fi echo "[SUCCESS] Tests ran successfully." -exit 0 \ No newline at end of file +exit 0