-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
No longer forcibly echo off during windows batch activation #2801
No longer forcibly echo off during windows batch activation #2801
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test please.
@gaborbernat Like I wrote in the PR - I don't understand how to write the tests in this repository. If you could advise what's the execution flow and what parts are necessary for the test and where the assertions should live, then I would be able to write the tests. For example for the test for this functionality I need to be able to create a bat file that will contain invocation of |
Yes, and you'll see example of if in the test suite. |
I've added a test for this case. |
The merge-base changed after approval.
fe26af4
to
7c0a39f
Compare
During fixing of #2728 new issue has been introduced.
Adding
echo off
at the beginning of the activate.bat cause this setting to persist after activation.It doesn't occur when activated in the interactive shell, but it does when activating inside of the Windows batch script - incidentaly that's how Jenkins
bat
step executes it's contents.This behaviour is unexpected and activation should not force specific
echo
on/off setting.This change removes that
echo off
while still fixing #2728 - no additional parentheses are displayed when activating in windows batch.I would love to write tests for that but I have no idea how - the way current tests are written is pretty convoluted and I don't understand them. However, I hope that this change is small enough that tests won't be necessary.
Thanks for contributing, make sure you address all the checklists (for details on how see development documentation)
tox -e fix
)docs/changelog
folder