-
Notifications
You must be signed in to change notification settings - Fork 244
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
Fix potential issue with image.TestSelectBackend
unit tests when PODMAN_CMD
env var is set
#5614
Fix potential issue with image.TestSelectBackend
unit tests when PODMAN_CMD
env var is set
#5614
Conversation
… is set For some valid reasons, we could want `odo` to use Docker as backend when building images. One way of doing so is to set the `PODMAN_CMD` system environment variable to a command we know does not exist. In such cases, the `image` unit tests will not pass, because they rely on the system environment variables.
✅ Deploy Preview for odo-docusaurus-preview canceled.
|
Kudos, SonarCloud Quality Gate passed!
|
/lgtm |
@feloy: Overrode contexts on behalf of feloy: ci/prow/v4.10-integration-e2e In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: feloy The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
… is set (redhat-developer#5614) For some valid reasons, we could want `odo` to use Docker as backend when building images. One way of doing so is to set the `PODMAN_CMD` system environment variable to a command we know does not exist. In such cases, the `image` unit tests will not pass, because they rely on the system environment variables.
What type of PR is this:
/kind tests
Which issue(s) this PR fixes:
For some valid reasons, we could want
odo
to use Docker as backend when building images.One way of doing so is to set the
PODMAN_CMD
system environment variable to a command we know does not exist.This is what I did a few days ago on my system.
Now the
image
unit tests will not pass, because they rely on the system environment variables.A workaround is to unset the
PODMAN_CMD
system environment variable prior to running the unit tests, but I found it cleaner to adapt the unit tests, so they run in a controlled environment.PR acceptance criteria:
Unit test
Integration test
Documentation
How to test changes / Special notes to the reviewer:
The unit tests should pass regardless of the value of
PODMAN_CMD
: