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
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
LOG_FILE="$HOME/hyperglass-ci.log"
|
||||||
|
|
||||||
echo "[INFO] Starting setup..."
|
echo "[INFO] Starting setup..."
|
||||||
poetry run hyperglass setup -d
|
poetry run hyperglass setup -d
|
||||||
echo "[SUCCESS] Setup completed."
|
echo "[SUCCESS] Setup completed."
|
||||||
@@ -19,8 +21,8 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "[INFO] Starting hyperglass..."
|
echo "[INFO] Starting hyperglass..."
|
||||||
poetry run hyperglass start &> $HOME/hyperglass-ci.log &
|
poetry run hyperglass start &> $LOG_FILE &
|
||||||
# sleep 180
|
sleep 5
|
||||||
|
|
||||||
if [[ ! $? == 0 ]]; then
|
if [[ ! $? == 0 ]]; then
|
||||||
echo "[ERROR] Failed to start hyperglass."
|
echo "[ERROR] Failed to start hyperglass."
|
||||||
@@ -40,7 +42,7 @@ if [[ ! $? == 0 ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
elif [[ ! "$STATUS" == "200" ]]; then
|
elif [[ ! "$STATUS" == "200" ]]; then
|
||||||
echo "[ERROR] HTTP test failed. Startup log:"
|
echo "[ERROR] HTTP test failed. Startup log:"
|
||||||
cat /var/log/hyperglassci.log
|
cat $LOG_FILE
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user