tools/metrics.py: Use OrderedDict when reading build log.
So that the output (eg of the diff command) always has the lines in the same order.
This commit is contained in:
parent
1cc24cd39a
commit
17dc86369f
@ -43,7 +43,7 @@ Other commands:
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import sys, re, subprocess
|
import collections, sys, re, subprocess
|
||||||
|
|
||||||
MAKE_FLAGS = ["-j3", "CFLAGS_EXTRA=-DNDEBUG"]
|
MAKE_FLAGS = ["-j3", "CFLAGS_EXTRA=-DNDEBUG"]
|
||||||
|
|
||||||
@ -98,7 +98,7 @@ def parse_port_list(args):
|
|||||||
|
|
||||||
|
|
||||||
def read_build_log(filename):
|
def read_build_log(filename):
|
||||||
data = dict()
|
data = collections.OrderedDict()
|
||||||
lines = []
|
lines = []
|
||||||
found_sizes = False
|
found_sizes = False
|
||||||
with open(filename) as f:
|
with open(filename) as f:
|
||||||
|
Loading…
Reference in New Issue
Block a user