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

Issue with output on windows #5

Open
MichaelLogutov opened this issue Jan 18, 2019 · 0 comments
Open

Issue with output on windows #5

MichaelLogutov opened this issue Jan 18, 2019 · 0 comments

Comments

@MichaelLogutov
Copy link

Running on windows it seems execute returns some invalid characters in output and thus failing on getting port from output (and maybe somewhere else).

I've managed to patch this like this:

`
from lovely.pytest.docker import compose

def strip_invalid_characters_from_output(func):
def wrapper(*args, **kwargs):
output = func(*args, **kwargs)
return output[:output.rfind('\n') + 1]

return wrapper

compose.execute = strip_invalid_characters_from_output(compose.execute)
`

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

No branches or pull requests

1 participant