| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Python3's RawIOBase guarantees only one syscall per read() requiring
a loop to accumulate the desired number of bytes or actually reach EOF.
TextIOBase.read does issue multiple syscalls (it must to correctly decode
partial unicode characters), but subunit unwraps that to get a binary stream,
and at least some of the time the layering is io.TextIOBase(_io.FileIO), where
_io.FileIO is a RawIOBase subclass rather than BufferedIOBase.
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Partial-bug: #1813147
|
| |
|
|
| |
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
|
| |
|
|
|
|
|
|
| |
Because purely written streams could return None instead of written
bytes, we cannot sum them to offset integer. On such case let
assume data has been written all at once.
This fixes LaunchPad [#1845631](https://bugs.launchpad.net/subunit/+bug/1845631)
|
| |
|
|
| |
select.select does not work on file descriptors on Windows, causing subunit to fail.
|
| |
|
|
|
|
|
|
| |
Call write() in a loop until all bytes are written. The write()
method doesn't ensure that all bytes are written.
This change should workaround the eventlet bug:
https://github.com/eventlet/eventlet/issues/248
|
| |
|
|
| |
Yay quickcheck.
|
| |
|
|
| |
required a workaround for NUL byte detection. (Robert Collins, #1216246)
|
| |
|
|
| |
data and the error message. (Robert Collins)
|
| |
|
|
| |
(Robert Collins, #1216163)
|
| |
|
|
| |
(Robert Collins)
|
| |
|
|
| |
(Robert Collins, 1216101)
|
| |
|
|
|
|
|
|
|
| |
~~~~~~~~~
* Subunit v2 packets with both file content and route code were not being
parsed correctly - they would incorrectly emit a parser error, due to trying
to parse the route code length from the first byes of the file content.
(Robert Collins, 1172815)
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|