summaryrefslogtreecommitdiff
path: root/python/subunit/v2.py
diff options
context:
space:
mode:
authorRobert Collins <robertc@robertcollins.net>2013-05-13 10:46:55 +1200
committerRobert Collins <robertc@robertcollins.net>2013-05-13 10:46:55 +1200
commit0fbc8c5a63a565799dc0de9a1ffeaed326c8c9cf (patch)
tree4fbaef55840b3fc84c8798e2c60809435fd05890 /python/subunit/v2.py
parent6aaa20b82104f26fd1aa40df09a42dd3bd5110f9 (diff)
downloadsubunit-git-0fbc8c5a63a565799dc0de9a1ffeaed326c8c9cf.tar.gz
BUG FIXES
~~~~~~~~~ * 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)
Diffstat (limited to 'python/subunit/v2.py')
-rw-r--r--python/subunit/v2.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/python/subunit/v2.py b/python/subunit/v2.py
index bbc20da..91d53f9 100644
--- a/python/subunit/v2.py
+++ b/python/subunit/v2.py
@@ -423,6 +423,7 @@ class ByteStreamToStreamResult(object):
raise ParseError('File content extends past end of packet: '
'claimed %d bytes, %d available' % (
content_length, len(file_bytes)))
+ pos += content_length
else:
file_name = None
file_bytes = None