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

[circt-reduce] Fix tests for portability again, prefer /usr/bin/env. #5135

Merged

Conversation

dtzSiFive
Copy link
Contributor

Don't make assumptions beyond /usr/bin/env regarding the location of various common utilities.

Fixes tests on NixOS.

Don't make assumptions beyond /usr/bin/env regarding the location
of various common utilities.
@dtzSiFive dtzSiFive requested a review from maerhart May 4, 2023 19:15
Copy link
Member

@maerhart maerhart left a comment

Choose a reason for hiding this comment

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

Thanks @dtzSiFive !
I assume the usage of /bin/sh in the other tests is fine then?

@dtzSiFive
Copy link
Contributor Author

Yes, although often /bin/sh is limited re:functionality so care is sometimes needed. I think our usage is fine at a glance but didn't carefully lint our shell scripts/expressions.

@dtzSiFive dtzSiFive merged commit 0b462f0 into llvm:main May 4, 2023
@dtzSiFive dtzSiFive deleted the fix/prefer-usr-bin-env-for-portability-again branch May 4, 2023 19:58
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