| 57 | self._source_flags = self._parse_source_flags(source) |
| 58 | |
| 59 | def _parse_source_files(self, source): |
| 60 | files_list = [] # List of file names to append to command arguments. |
| 61 | files_match = FILES_PATTERN.search(source) |
| 62 | # Accept several lines of 'Files:'. |
| 63 | while True: |
| 64 | if files_match: |
| 65 | files_list += files_match.group(1).strip().split() |
| 66 | files_match = FILES_PATTERN.search(source, files_match.end()) |
| 67 | else: |
| 68 | break |
| 69 | files = [self.suite.root.parents[1] / f for f in files_list] |
| 70 | files.append(self.suite.root / "resources/standalone-pre.js") |
| 71 | files.append(self.suite.root / self.path_js) |
| 72 | files.append(self.suite.root / "resources/standalone-post.js") |
| 73 | return files |
| 74 | |
| 75 | def _get_files_params(self): |
| 76 | files = self._source_files |