From 85c608b658408191b6f8b8e33846ed4379eaca7e Mon Sep 17 00:00:00 2001 From: Dipankar Das <65275144+dipankardas011@users.noreply.github.com> Date: Tue, 28 May 2024 15:32:01 +0530 Subject: [PATCH] debug(iter-3)!: gh workflow for e2e fixed the failing curl test checking Signed-off-by: Dipankar Das <65275144+dipankardas011@users.noreply.github.com> --- .github/workflows/e2e-migration.yml | 8 ++++---- test/fm.sh | 4 +++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/e2e-migration.yml b/.github/workflows/e2e-migration.yml index f56de466..5e7f25cd 100644 --- a/.github/workflows/e2e-migration.yml +++ b/.github/workflows/e2e-migration.yml @@ -27,9 +27,9 @@ jobs: - name: header run: | - echo -e "\e[1;33m┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓\e[0m + echo -e "\e[1;33m┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓\e[0m \e[1;33m┃\e[0m \e[1;36m Migration from v0.9.0 to latest \e[0m \e[1;33m┃\e[0m - \e[1;33m┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛\e[0m" + \e[1;33m┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛\e[0m" - name: install frappe from v0.9.0 run: | @@ -71,9 +71,9 @@ jobs: sudo apt install -y jq curl - name: header run: | - echo -e "\e[1;33m┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓\e[0m + echo -e "\e[1;33m┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓\e[0m \e[1;33m┃\e[0m \e[1;36m Migration from latest~1 to latest \e[0m \e[1;33m┃\e[0m - \e[1;33m┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛\e[0m" + \e[1;33m┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛\e[0m" - name: install frappe previous the latest release run: | diff --git a/test/fm.sh b/test/fm.sh index 534eaeee..b64df066 100755 --- a/test/fm.sh +++ b/test/fm.sh @@ -30,8 +30,10 @@ TestSiteReachability() { -H "Host: $siteName" \ -H "Cache-Control: no-cache,no-store" \ http://localhost:80 + + statcode=$? - if [ $? -eq 0 ]; then + if [ $statcode -eq "0" ]; then echo "Curl succeeded for $siteName" return else