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

PATH setting in BATS tests/helpers/command.bash is not correct on Windows #6876

Open
jandubois opened this issue May 14, 2024 · 0 comments
Open
Labels
component/bats BATS tests kind/quality quality improvements, refactoring, Automation via CI, E2E, Integration, CLI or REST API

Comments

@jandubois
Copy link
Member

We use this code

docker_exe() {
    # Add path to bundled credential helpers to the front of the PATH
    PATH="$PATH_RESOURCES/$PLATFORM/bin:$PATH" "$PATH_RESOURCES/$PLATFORM/bin/docker$EXE" "$@" | no_cr
}

To update the PATH before running docker$EXE, but if we are running the Windows executable, then this will have no effect.

Similar code now also exists for the spin function.

@jandubois jandubois added kind/quality quality improvements, refactoring, Automation via CI, E2E, Integration, CLI or REST API component/bats BATS tests labels May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/bats BATS tests kind/quality quality improvements, refactoring, Automation via CI, E2E, Integration, CLI or REST API
Projects
None yet
Development

No branches or pull requests

1 participant