Skip to content

Commit

Permalink
Update test.sh (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
waynehamadi authored Sep 11, 2023
1 parent 4b28774 commit 421f195
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions testing_suite/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 421f195

Please sign in to comment.