From d6894b6d2c2fd3a4d68bed96cb3e857292badb61 Mon Sep 17 00:00:00 2001 From: arko0220 Date: Tue, 5 May 2026 19:20:15 +0500 Subject: [PATCH] fix: added if on allure link before put error --- error-handler.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/error-handler.sh b/error-handler.sh index a728e14..deb9581 100644 --- a/error-handler.sh +++ b/error-handler.sh @@ -53,8 +53,12 @@ finalize_once() { EXECUTION_DATE="$(date '+%Y-%m-%d %H:%M:%S')" export TIMESTAMP TIMESTAMP="$(date '+%Y-%m-%d %H:%M:%S UTC')" - export ALLURE_REPORT_URL="Test not started. Please check the logs for more details. $FAIL_MESSAGE. " - export ATP_REPORT_VIEW_UI_URL="Test not started. Please check the logs for more details. $FAIL_MESSAGE. " + if compgen -G "$TMP_DIR/allure-results/*-result.json" > /dev/null 2>&1; then + echo "ℹ️ Allure results detected — skipping 'Test not started' URL override." + else + export ALLURE_REPORT_URL="Test not started. Please check the logs for more details. $FAIL_MESSAGE. " + export ATP_REPORT_VIEW_UI_URL="Test not started. Please check the logs for more details. $FAIL_MESSAGE. " + fi fi generate_email_notification_json || true