Fixed files picking code to preserve the order in summary.py script.
This commit is contained in:
parent
9b350e5e0d
commit
e9901306c2
@ -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 = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user