Commit e9901306 authored by Andrey Kamaev's avatar Andrey Kamaev

Fixed files picking code to preserve the order in summary.py script.

parent 9b350e5e
...@@ -46,16 +46,17 @@ if __name__ == "__main__": ...@@ -46,16 +46,17 @@ if __name__ == "__main__":
options.columns = [s.strip().replace("\\n", "\n") for s in options.columns.split(",")] options.columns = [s.strip().replace("\\n", "\n") for s in options.columns.split(",")]
# expand wildcards and filter duplicates # expand wildcards and filter duplicates
files = [] files = []
files1 = [] seen = set()
for arg in args: for arg in args:
if ("*" in arg) or ("?" in arg): if ("*" in arg) or ("?" in arg):
files1.extend([os.path.abspath(f) for f in glob.glob(arg)]) flist = [os.path.abspath(f) for f in glob.glob(arg)]
flist = sorted(flist, key= lambda text: str(text).replace("M", "_"))
files.extend([ x for x in flist if x not in seen and not seen.add(x)])
else: else:
files.append(os.path.abspath(arg)) fname = os.path.abspath(arg)
seen = set() if x not in seen and not seen.add(x):
files = [ x for x in files if x not in seen and not seen.add(x)] files.append(fname)
files.extend((set(files1) - set(files)))
# read all passed files # read all passed files
test_sets = [] test_sets = []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment