Skip to content
New issue

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

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

Already on GitHub? # to your account

Add support for environment variables #110

Merged
merged 8 commits into from
May 25, 2024

Conversation

rradczewski
Copy link
Collaborator

No description provided.

src/lib/Test/Smoke/Executable.hs Outdated Show resolved Hide resolved
spec/environment.yaml Outdated Show resolved Hide resolved
@@ -0,0 +1 @@
ARGV.each { |arg| puts ENV[arg] }
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I've added this to generalize retrieving env variables between operating systems. Alternatively, we could have each of the tests echo both, e.g. echo $TEST_ENV %TEST_ENV% and assert on either of them being substituted. LMK

Copy link
Owner

Choose a reason for hiding this comment

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

I think this is solid. It might be worth adding tests for Windows in the future if we find it to be strange in some way but I don't expect it's necessary.

@@ -0,0 +1 @@
ARGV.each { |arg| puts ENV[arg] }
Copy link
Owner

Choose a reason for hiding this comment

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

I think this is solid. It might be worth adding tests for Windows in the future if we find it to be strange in some way but I don't expect it's necessary.

@SamirTalwar
Copy link
Owner

@rradczewski, this needs a bit of explanation in the README, but otherwise I think it's fine. Would you like to do it or shall I?

@rradczewski
Copy link
Collaborator Author

@rradczewski, this needs a bit of explanation in the README, but otherwise I think it's fine. Would you like to do it or shall I?

I'll do it!

@SamirTalwar SamirTalwar merged commit 83cd766 into SamirTalwar:main May 25, 2024
8 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants