Skip to content

test pwsh support for empty enviroment variables - #20244

Draft
ErniGH wants to merge 2 commits into
conan-io:develop2from
ErniGH:erni/test_pwsh_support_empty_variables
Draft

test pwsh support for empty enviroment variables#20244
ErniGH wants to merge 2 commits into
conan-io:develop2from
ErniGH:erni/test_pwsh_support_empty_variables

Conversation

@ErniGH

@ErniGH ErniGH commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

@ErniGH ErniGH changed the title test_pwsh_support_empty_variables test pwsh support for empty enviroment variables Aug 6, 2026

@memsharded memsharded left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'd try to parameterize the test, or create side tests with same logic that test exactly the same, but for .bat files on Windows and .sh on Linux/Mac.

env.vars(self, scope="build").save_script("conanmytoolchain")

def build(self):
self.run(f'python "{os.path.join(self.source_folder, "check.py")}"')

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I would prefer if the run was a .bat script that does the intended check.

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