self.architectures = parse_developer_architectures(files)
self.infras = parse_developer_infras(files)
self.runtime_tests = parse_developer_runtime_tests(files)
+ self.defconfigs = parse_developer_defconfigs(files)
def hasfile(self, f):
f = os.path.abspath(f)
things.append('{} infras'.format(len(self.infras)))
if len(self.runtime_tests):
things.append('{} tests'.format(len(self.runtime_tests)))
+ if len(self.defconfigs):
+ things.append('{} defconfigs'.format(len(self.defconfigs)))
if things:
return 'Developer <{} ({})>'.format(name, ', '.join(things))
else:
return infras
+def parse_developer_defconfigs(fnames):
+ """Given a list of file names, returns the config names
+ corresponding to defconfigs."""
+ return {os.path.basename(fname[:-10])
+ for fname in fnames
+ if fname.endswith('_defconfig')}
+
+
def parse_developer_runtime_tests(fnames):
"""Given a list of file names, returns the runtime tests
corresponding to the file."""