From 426b9adfad3bbfcc6b60b6f09438fa3e91d60b70 Mon Sep 17 00:00:00 2001 From: checktheroads Date: Mon, 4 Jan 2021 00:58:40 -0700 Subject: [PATCH] improve ci script logging --- .tests/ga-backend-app.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.tests/ga-backend-app.sh b/.tests/ga-backend-app.sh index c76b210..5bea96f 100755 --- a/.tests/ga-backend-app.sh +++ b/.tests/ga-backend-app.sh @@ -22,6 +22,7 @@ poetry run hyperglass build-ui &> $LOG_FILE if [[ ! $? == 0 ]]; then echo "[ERROR] Failed to build hyperglass ui." cat /tmp/hyperglass.log + cat $LOG_FILE exit 1 else echo "[SUCCESS] UI build completed." @@ -34,6 +35,7 @@ sleep 120 if [[ ! $? == 0 ]]; then echo "[ERROR] Failed to start hyperglass." cat /tmp/hyperglass.log + cat $LOG_FILE exit 1 else echo "[SUCCESS] Started hyperglass." @@ -50,6 +52,7 @@ if [[ ! $? == 0 ]]; then exit 1 elif [[ ! "$STATUS" == "200" ]]; then echo "[ERROR] HTTP test failed." + cat /tmp/hyperglass.log cat $LOG_FILE exit 1 fi