Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add xdg-open along with open and friendly error output on REPORT_OUTPUT failure #690

Closed
wants to merge 2 commits into from

Conversation

exapsy
Copy link
Contributor

@exapsy exapsy commented Jan 19, 2023

No description provided.

@alixander
Copy link
Collaborator

could you set up commit signing please? #557 (comment)

ci/e2ereport.sh Outdated
@@ -9,7 +9,9 @@ FORCE_COLOR=1 DEBUG=1 go run ./e2etests/report/main.go "$@";

if [ -z "${NO_OPEN:-}" ]; then
if [ -s "$REPORT_OUTPUT" ]; then
open "$REPORT_OUTPUT"
open "$REPORT_OUTPUT" 2>/dev/null || \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use command -v to check if they exist before opening them.

With 2>/dev/null you won't get any error messages even if they're legit.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grep other scripts for command -v to see how it's used.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed on e8906ef :D

@exapsy
Copy link
Contributor Author

exapsy commented Jan 20, 2023

Closing to ensure signed commits from my side

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants