From 1d16038ceb70c7b436d97616e4b824f09eea268c Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Sun, 15 Mar 2026 13:31:05 -0700 Subject: [PATCH] Relax archive output readiness check --- archivebox/tests/conftest.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/archivebox/tests/conftest.py b/archivebox/tests/conftest.py index b290a37e..d8c38172 100644 --- a/archivebox/tests/conftest.py +++ b/archivebox/tests/conftest.py @@ -207,6 +207,18 @@ def wait_for_archive_outputs( fallback = Path(snapshot.output_dir, 'index.jsonl') if fallback.exists(): output_rel = 'index.jsonl' + if output_rel is None: + snapshot_dir = Path(snapshot.output_dir) + for candidate in snapshot_dir.rglob('*'): + if not candidate.is_file(): + continue + rel_path = candidate.relative_to(snapshot_dir) + if rel_path.parts and rel_path.parts[0] == 'responses': + continue + if rel_path.name in {'stdout.log', 'stderr.log', 'cmd.sh'}: + continue + output_rel = str(rel_path) + break if output_rel is None: raise SystemExit(1)