...
1#!/bin/sh
2set -eu
3
4export REPORT_OUTPUT="./e2etests/out/e2e_report.html"
5rm -f $REPORT_OUTPUT
6export E2E_REPORT=1
7
8FORCE_COLOR=1 DEBUG=1 go run ./e2etests/report/main.go "$@";
9
10if [ -z "${NO_OPEN:-}" ]; then
11 if [ -s "$REPORT_OUTPUT" ]; then
12 if command -v open >/dev/null; then
13 open "$REPORT_OUTPUT"
14 elif command -v xdg-open >/dev/null; then
15 xdg-open "$REPORT_OUTPUT"
16 else
17 echo "Please open $REPORT_OUTPUT"
18 fi
19 else
20 echo "The report is empty"
21 fi
22fi
View as plain text