()
| 86 | } |
| 87 | |
| 88 | async getAllowlist() { |
| 89 | const contents = await fs.readFile(this.allowlist, "utf-8"); |
| 90 | const table = new Set(); |
| 91 | |
| 92 | for (const line of contents.split("\n")) { |
| 93 | const filename = line.replace(/#.*$/, "").trim(); |
| 94 | if (filename) table.add(filename); |
| 95 | } |
| 96 | |
| 97 | return table; |
| 98 | } |
| 99 | |
| 100 | /** |
| 101 | * Update the allowlist based on the test results. |