Commit 703ccde8 authored by Marc Vef's avatar Marc Vef
Browse files

Eval: Only parse mdtest files in one directory depth

parent 292bf049
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -45,7 +45,11 @@ def parse_mdtest_out(inpath, outpath='', printshell=False, printonly=True):
        print "Input path does not exist or is not a directory. Exiting."
        exit(1)
    # parse input
    in_depth = inpath.count(os.path.sep)
    for root, dirs, files in os.walk(inpath):
        curr_depth = root.count(os.path.sep)
        if curr_depth > in_depth:
            break
        for file in files:
            filepath = '%s/%s' % (root, file)
            parse_file(filepath)