mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-06 01:53:56 -06:00
fix: skip the report excerpt without the assets
The excerpt quotes verify over the whole collection. The PR workflow restores none of the release assets, so the run there printed other counts and failed on every push since the engine batch. The test now names how many assets are absent and skips.
This commit is contained in:
1 parent
6acd48a344
commit
b873c6a9fb
1 file changed
+9
@@ -1783,6 +1783,15 @@ class ReportExcerptIsTheRun(unittest.TestCase):
|
||||
def test_every_quoted_line_is_printed(self):
|
||||
import subprocess # noqa: PLC0415
|
||||
|
||||
from restore_large_files import gitignored_paths # noqa: PLC0415
|
||||
|
||||
# The excerpt is a run over the whole collection. A checkout without
|
||||
# the release assets (the PR workflow restores none) prints other
|
||||
# counts, which says nothing about the page.
|
||||
absent = [p for p in gitignored_paths(str(ROOT / ".gitignore"))
|
||||
if not any(ROOT.glob(p))]
|
||||
if absent:
|
||||
self.skipTest(f"{len(absent)} release assets absent from this checkout, e.g. {absent[0]}")
|
||||
page = (WIKI / "reading-reports.md").read_text(encoding="utf-8")
|
||||
intro = "From `python scripts/verify.py --platform retrodeck`:"
|
||||
start = page.index("```\n", page.index(intro)) + 4
|
||||
|
||||
Reference in new issue
Block a user