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

Allow binary output files #32

Merged
merged 2 commits into from
Jul 12, 2024
Merged

Allow binary output files #32

merged 2 commits into from
Jul 12, 2024

Conversation

sampsyo
Copy link
Contributor

@sampsyo sampsyo commented Jul 12, 2024

As reported by @evanmwilliams, Turnt would crash if a test command produced binary (non-UTF-8) output, even when binary = true was set. The problem was that we were doing the comparison between actual/expected files as text, not as binary data. We now always do a bytes comparison, regardless of the binary setting (which is only necessary for binary inputs).

sampsyo added 2 commits July 12, 2024 09:45
Open expected & actual output files in binary mode, and compare the
binary strings.
@sampsyo sampsyo merged commit 283b200 into main Jul 12, 2024
3 checks passed
@sampsyo sampsyo deleted the bin-outputs branch July 12, 2024 13:48
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.

1 participant