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

chore: use env for windows and linux #1224

Merged
merged 2 commits into from
Jan 30, 2025
Merged

Conversation

deboer-tim
Copy link
Contributor

What does this PR do?

Just updates windows and linux to use PD env API instead of os.platform(), so that it is consistent with mac. Tests mock to mac for now, as they're not doing anything dependent on execution OS.

Screenshot / video of UI

N/A

What issues does this PR fix or reference?

Fixes #1207.

How to test this PR?

PR checks.

Just updates windows and linux to use PD env API instead of os.platform(), so that
it is consistent with mac. Tests mock to mac for now, as they're not doing anything
dependent on execution OS.

Fixes podman-desktop#1207.

Signed-off-by: Tim deBoer <[email protected]>
@deboer-tim deboer-tim requested a review from a team as a code owner January 23, 2025 19:26
@deboer-tim deboer-tim requested review from benoitf, feloy and SoniaSandler and removed request for a team January 23, 2025 19:26
@@ -51,6 +51,11 @@ vi.mock('@podman-desktop/api', async () => {
};
},
},
env: {
isMac: true,
Copy link
Contributor

@benoitf benoitf Jan 23, 2025

Choose a reason for hiding this comment

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

questio: it seems it'll test only macos case in the unit tests ?

Usually it's a vi.fn function and there are tests for each os

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There are no tests that are actually platform dependent (yet), but agree, that's better for now and more obvious later. Updated.

Respond to review feedback.

Signed-off-by: Tim deBoer <[email protected]>
@deboer-tim deboer-tim merged commit 3a9ed2e into podman-desktop:main Jan 30, 2025
6 checks passed
@deboer-tim deboer-tim deleted the env branch February 3, 2025 18: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.

Use Podman Desktop env API for all platforms
3 participants