-
Notifications
You must be signed in to change notification settings - Fork 73
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
Selecting testcase with docker compose in windows #419
Comments
@haraldwalnum pity that it's proving so challenging. I have no extensive experience with
@dhblum it's maybe worth editing the |
Thanks @haraldwalnum for reporting and also proposing the solution. A similar issue was reported to me offline and I'm seeing if this solution can help that too. Can you also just verify your proposed solution doesn't require a |
Confirming the fix works for the offline case I got as well. |
the missing |
Closed by #420. |
I have struggled quite a bit with selecting testscases when using docker-compose in windows. Originally, I was not able to use the
setx
command to select testcases. I selected whatever was in the .env file.As I understand, the
setx
command sets the env. variable at user level :https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/setxI think the .env file overwrites this.
At a later stage I had trouble setting the testcase also in the .env file. It turned out that (for some reason I dont't know) the evn. variable TESTCASE had been set at shell level. This overwrites what in the .env file https://docs.docker.com/compose/environment-variables/
My solution was to use:
> ($env:TESTCASE="<testcase_directory") -and (docker-compose up)
instead of:
> (setx TESTCASE "<testcase_dir_name>") -and (docker-compose up)
$env
sets the env. variable at shell level for the current session only.To me this seems to be a safer approach.
@JavierArroyoBastida I know you have tested a bit with Windows and PowerShell. Have you experienced something similar?
The text was updated successfully, but these errors were encountered: