mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
fix backend test ci script [skip ci]
This commit is contained in:
@@ -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
|
||||
exit 0
|
||||
|
Reference in New Issue
Block a user