Displaying 1 result from an estimated 1 matches for "load_exts_from_config".
2014 Feb 13
2
[LLVMdev] Bad test health
...le(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(parent)
self.exts[dir] = self.exts[parent]
def load_exts_from_config(self, dir):
for cfg in ['lit.local.cfg', 'lit.cfg']:
cfg = os.path.join(dir, cfg)...