Skip to content

Commit 257f4e6

Browse files
rvaggevanlucas
authored andcommitted
test: add note about duration_ms in TAP reporter
PR-URL: #7216 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Johan Bergström <[email protected]>
1 parent 798a737 commit 257f4e6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,8 @@ def HasRun(self, output):
309309
total_seconds = (duration.microseconds +
310310
(duration.seconds + duration.days * 24 * 3600) * 10**6) / 10**6
311311

312+
# duration_ms is measured in seconds and is read as such by TAP parsers.
313+
# It should read as "duration including ms" rather than "duration in ms"
312314
logger.info(' ---')
313315
logger.info(' duration_ms: %d.%d' % (total_seconds, duration.microseconds / 1000))
314316
logger.info(' ...')

0 commit comments

Comments
 (0)