| 169 | super(AddonTestConfiguration, self).__init__(context, root, section, additional) |
| 170 | |
| 171 | def Ls(self, path): |
| 172 | def SelectTest(name): |
| 173 | return name.endswith('.js') |
| 174 | |
| 175 | result = [] |
| 176 | for subpath in os.listdir(path): |
| 177 | if os.path.isdir(os.path.join(path, subpath)): |
| 178 | result.extend([subpath, f[:-3]] for f in os.listdir(os.path.join(path, subpath)) if SelectTest(f)) |
| 179 | return result |
| 180 | |
| 181 | def ListTests(self, current_path, path, arch, mode): |
| 182 | all_tests = [current_path + t for t in self.Ls(os.path.join(self.root))] |