This commit is contained in:
MatsuneMikuroi committed 2026-10-16 09:05:43 +02:00
1 parent 8bbcf8ecd9
commit 45dd65b48e
116 files changed
+20457 -1164

No files matched your search

+12
View File
@@ -83,6 +83,18 @@ def main():
futs = {ex.submit(load, SHELLS[-1], f"http://127.0.0.2:{port}/{p}", w): (p, w) for p, w in jobs}
for f in cf.as_completed(futs):
results[futs[f]] = f.result()
# Under load the little http server sometimes drops a file: a page then
# gives no result, or loads without the extension (no ◐ button, no
# narrow.css) and shows overflow that is not there. Retry those runs
# alone, twice, before reporting them.
def suspect(r):
return "error" in r or not r.get("hasHcButton")
for _ in range(2):
again = [k for k, r in results.items() if suspect(r)]
for p, w in again:
r = load(SHELLS[-1], f"http://127.0.0.2:{port}/{p}", w)
if not suspect(r) or "error" in results[(p, w)]:
results[(p, w)] = r
srv.shutdown()
shutil.rmtree(os.path.dirname(dst), ignore_errors=True)