search for: exts_for_dir

Displaying 1 result from an estimated 1 matches for "exts_for_dir".

2014 Feb 13
2
[LLVMdev] Bad test health
...eturn False return True class LitTestTracker: def __init__(self): self.exts = dict() def is_test(self, path): path = os.path.abspath(path) if not os.path.isfile(path): return False dir = os.path.dirname(path) ext = os.path.splitext(path)[1] return ext in self.exts_for_dir(dir) def exts_for_dir(self, dir): self.add_dir(dir) return self.exts[dir] def add_dir(self, dir): if dir in self.exts: return exts = self.load_exts_from_config(dir) if exts: self.exts[dir] = exts return parent = os.path.dirname(dir) self.add_dir...