Commit Diff


commit - 407f6af68be0eef99173c8f29524f49ad8430372
commit + ad8fa4132914840117b214c23b00835b03d08afa
blob - adc46049e5e46fc7a34096b9945dab2f12a2ffbc
blob + ed50ecec1428d669a60b0e885df14ae36ca02d53
--- libtestoutput/parse_subunit_v2.c
+++ libtestoutput/parse_subunit_v2.c
@@ -186,8 +186,10 @@ int read_subunit_v2_packet(const void *buf, subunit_pa
 	p->length = (uint32_t*)data;
 	assert((p->length) < PACKET_MAX_LENGTH);
 
+	/* https://github.com/testing-cabal/subunit/blob/master/python/subunit/v2.py#L446 */
 	if (p->flags & FLAG_TIMESTAMP) {
 		buf = read_uint32(buf, &p->timestamp);
+		buf = read_varint(buf, nanoseconds);
 	};
 
 	uint8_t n_bytes = 0;