mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-10 21:43:23 -05:00
fix: compare only the full pack to verify
This commit is contained in:
1 parent
e8884e4341
commit
ce135b788f
3 files changed
+37
-10
No files matched your search
@@ -492,6 +492,16 @@ class PipelineRegressions(unittest.TestCase):
|
||||
with contextlib.redirect_stdout(io.StringIO()):
|
||||
self.assertFalse(pipeline.check_consistency(verify, pack))
|
||||
|
||||
def test_only_the_full_variant_feeds_the_comparison(self):
|
||||
"""--all-variants printed six packs under one label; the last won."""
|
||||
output = "\n".join([
|
||||
"Generating pack for RetroArch [source=full]...",
|
||||
" a.zip: 5 files packed (5 baseline + 0 from cores), 535/535 files OK",
|
||||
"Generating pack for RetroArch [source=platform, required]...",
|
||||
" b.zip: 5 files packed (5 baseline + 0 from cores), 530/530 files OK",
|
||||
])
|
||||
self.assertEqual(pipeline.parse_pack_counts(output), {"RetroArch": (535, 535)})
|
||||
|
||||
def test_slot_step_reaches_the_summary(self):
|
||||
source = Path(pipeline.__file__).read_text(encoding="utf-8")
|
||||
self.assertIn('results["slots"] = ok', source)
|
||||
|
||||
Reference in new issue
Block a user