2022-11-04 20:01:35 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
set -eu
|
|
|
|
|
|
|
|
|
|
export REPORT_OUTPUT="out/e2e_report.html"
|
|
|
|
|
rm -f $REPORT_OUTPUT
|
2022-12-15 03:10:39 +00:00
|
|
|
export E2E_REPORT=1
|
2022-11-04 20:01:35 +00:00
|
|
|
|
|
|
|
|
FORCE_COLOR=1 DEBUG=1 go run ./e2etests/report/main.go "$@";
|
|
|
|
|
|
|
|
|
|
if [ -z "${NO_OPEN:-}" ]; then
|
|
|
|
|
if [ -s "$REPORT_OUTPUT" ]; then
|
2023-01-20 02:29:47 +00:00
|
|
|
if command -v open >/dev/null; then
|
2023-01-20 01:09:16 +00:00
|
|
|
open $REPORT_OUTPUT
|
2023-01-21 17:02:55 +00:00
|
|
|
elif [ -x "$(command -v xdg-open >/dev/null)" ]; then
|
2023-01-20 01:09:16 +00:00
|
|
|
xdg-open $REPORT_OUTPUT
|
|
|
|
|
else
|
|
|
|
|
echo "Please open $REPORT_OUTPUT"
|
|
|
|
|
fi
|
2022-11-04 20:01:35 +00:00
|
|
|
else
|
|
|
|
|
echo "The report is empty"
|
|
|
|
|
fi
|
|
|
|
|
fi
|