diff --git a/tests/various/test_splitnets.tcl b/tests/various/test_splitnets.tcl index 9cb2b4305..cab2e2e69 100644 --- a/tests/various/test_splitnets.tcl +++ b/tests/various/test_splitnets.tcl @@ -7,10 +7,11 @@ proc read_stats { file } { set ports 0 set nets 0 foreach line [split $result "\n"] { - if [regexp {Number of wires:[ \t]+([0-9]+)} $line tmp n] { + # Match upstream yosys stat format: " wires" + if [regexp {^\s*(\d+)\s+[\d.]+\s+wires\s*$} $line -> n] { set nets [expr $nets + $n] } - if [regexp {Number of ports:[ \t]+([0-9]+)} $line tmp n] { + if [regexp {^\s*(\d+)\s+[\d.]+\s+ports\s*$} $line -> n] { set ports [expr $ports + $n] } }