[ducktests] Allow time units in the control.sh transactions output parser
@@ -289,10 +289,11 @@ class ControlUtility:
tx_pattern = re.compile(
"Tx: \\[xid=(?P<xid>[^\\s]+), "
"label=(?P<label>[^\\s]+), state=(?P<state>[^\\s]+), "
- "startTime=(?P<start_time>\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}.\\d{3}), duration=(?P<duration>\\d+), "
+ "startTime=(?P<start_time>\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}.\\d{3}), "
+ "duration=(?P<duration>\\d+)( sec)?, "
"isolation=(?P<isolation>[^\\s]+), concurrency=(?P<concurrency>[^\\s]+), "
"topVer=AffinityTopologyVersion \\[topVer=(?P<top_ver>\\d+), minorTopVer=(?P<minor_top_ver>\\d+)\\], "
- "timeout=(?P<timeout>\\d+), size=(?P<size>\\d+), dhtNodes=\\[(?P<dht_nodes>.*)\\], "
+ "timeout=(?P<timeout>\\d+)( sec)?, size=(?P<size>\\d+), dhtNodes=\\[(?P<dht_nodes>.*)\\], "
"nearXid=(?P<near_xid>[^\\s]+), parentNodeIds=\\[(?P<parent_nodes>.*)\\]\\]")
str_fields = ['xid', 'label', 'state', 'isolation', 'concurrency', 'near_xid']
