forked from mirrors/thatmattlove-hyperglass
fix backend test ci script [skip ci]
This commit is contained in:
parent
32c4456182
commit
a16b79ae13
1 changed files with 6 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue