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

only unset xtrace if env.sh set it first #5875

Merged
merged 2 commits into from
Jun 21, 2024
Merged

only unset xtrace if env.sh set it first #5875

merged 2 commits into from
Jun 21, 2024

Conversation

iliana
Copy link
Contributor

@iliana iliana commented Jun 10, 2024

I noticed that the Buildomat logs for some of our tests didn't have execution tracing, despite set -o xtrace at the top of their scripts! Turns out env.sh was the cause.

Despite this script being Bash-specific ($BASH_SOURCE) I went with a POSIXy implementation here.

(Also fixed quoting, in case your checkout is within a directory path containing spaces.)

@iliana iliana merged commit 253ccec into main Jun 21, 2024
19 checks passed
@iliana iliana deleted the iliana/xtrace branch June 21, 2024 16:45
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.

2 participants