From e45ef5a0c83fb30f78ad8060c407f4ede263996c Mon Sep 17 00:00:00 2001 From: merwanehamadi Date: Mon, 11 Sep 2023 15:19:25 -0700 Subject: [PATCH] Update test.sh --- testing_suite/test.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/testing_suite/test.sh b/testing_suite/test.sh index 6c3589b..ec9c56b 100644 --- a/testing_suite/test.sh +++ b/testing_suite/test.sh @@ -62,11 +62,13 @@ agent_protocol_contract_testing_results=$? if [[ "$OSTYPE" == "darwin"* ]]; then - open report.html + opener="open" elif [[ "$OSTYPE" == "linux-gnu"* ]]; then - xdg-open report.html + opener="xdg-open" fi +$opener report.html || echo "couldn't open the report. You can open it yourself in your favorite browser. The report is located in the current directory and named report.html" + if [[ $agent_protocol_tests_results -ne 0 ]] || [[ $agent_protocol_contract_testing_results -ne 0 ]]; then exit 1 else