Closed Redmar-van-den-Berg closed 1 year ago
Good find. Pytest-workflow now also saves the encoding of the file so let me see if this can be fixed.
As a workaround you can set --stderr-bytes to some very high value. The whole log will be printed in that case, but the problem should be averted. Similarly stderr-bytes can be set to 0. In which case the log has to be looked up again, but also the problem is worked around.
For certain log files with special characters, pytest-workflow crashes due to the seek method that is used output the last X bytes of the log file in case of an error, if it happens to land half way through a special character. I've attached an example log file here
The error from pytest workflow
Script to trigger the bug on the log file, notice that the crash does not happen if you remove the seek