diff --git a/ci/e2ereport.sh b/ci/e2ereport.sh index ebf45b9125..c92f83e261 100755 --- a/ci/e2ereport.sh +++ b/ci/e2ereport.sh @@ -9,7 +9,13 @@ FORCE_COLOR=1 DEBUG=1 go run ./e2etests/report/main.go "$@"; if [ -z "${NO_OPEN:-}" ]; then if [ -s "$REPORT_OUTPUT" ]; then - open "$REPORT_OUTPUT" + if command -v open >/dev/null; then + open "$REPORT_OUTPUT" + elif command -v xdg-open >/dev/null; then + xdg-open "$REPORT_OUTPUT" + else + echo "Please open $REPORT_OUTPUT" + fi else echo "The report is empty" fi