mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-18 01:13:30 -05:00
fix: show exclusions and every verify-packs error
This commit is contained in:
1 parent
c4c87a5f7a
commit
09eb4f4ef3
2 files changed
+22
-5
No files matched your search
@@ -3529,5 +3529,20 @@ class TheTestJobHasTheDataTrees(unittest.TestCase):
|
||||
self.assertLess(fetch, suite)
|
||||
|
||||
|
||||
|
||||
class VerifyPacksSaysWhatItExcluded(unittest.TestCase):
|
||||
"""--verify-packs read the result tuple by position, dropped the unsafe
|
||||
exclusions (352/353 shown as OK with no reason) and printed 5 errors."""
|
||||
|
||||
def test_the_result_is_unpacked_whole_and_every_error_printed(self):
|
||||
source = (ROOT / "scripts" / "generate_pack.py").read_text()
|
||||
body = source[source.index("def _run_verify_packs"):]
|
||||
body = body[:body.index("\ndef ")]
|
||||
self.assertIn("bl_excluded) = result", body)
|
||||
self.assertIn("unsafe excluded", body)
|
||||
self.assertNotIn("errors[:5]", body)
|
||||
self.assertNotRegex(body, r"result\[\d\]")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user