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

Run tests on windows and mac #108

Open
wants to merge 27 commits into
base: main
Choose a base branch
from
Open

Run tests on windows and mac #108

wants to merge 27 commits into from

Conversation

mohithg
Copy link
Contributor

@mohithg mohithg commented Nov 11, 2021

No description provided.

@mohithg mohithg force-pushed the mohithg/try-windows branch 5 times, most recently from ce574f4 to 379ffa7 Compare November 14, 2021 09:35
@guysmoilov guysmoilov self-requested a review November 14, 2021 10:48
@mohithg mohithg force-pushed the mohithg/try-windows branch 2 times, most recently from 06f3ef4 to 54ca80c Compare November 14, 2021 12:08
@mohithg mohithg force-pushed the mohithg/try-windows branch 2 times, most recently from ed6c4f7 to 677e6c5 Compare November 14, 2021 12:59
@mohithg mohithg force-pushed the mohithg/try-windows branch 6 times, most recently from ccf0f60 to 346e22b Compare November 14, 2021 15:53
fds/utils.py Outdated
Comment on lines 35 to 37
stdout, stderr = output.communicate()
sys.stdout.write(convert_bytes_to_string(stdout))
sys.stderr.write(convert_bytes_to_string(stderr))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem here is that the streams won't be outputted in correct order.
If there's an error written to stderr in the middle of output, it will still appear in the end in this way, and cause confusion.
Why not pass a splitting stream to stdout and stderr, which both stores the outputs in byte buffers, and writes them to sys.stdout and sys.stderr ?
Example: https://stackoverflow.com/a/616686

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yeah, I forgot to do this part, We originally were doing it, I changed it so that it works in windows too

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

Successfully merging this pull request may close these issues.

None yet

2 participants