mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-20 18:59:07 -05:00
fix: fail --verify-packs when no pack was checked
This commit is contained in:
1 parent
c229daac3a
commit
9a417dde2a
2 files changed
+19
No files matched your search
@@ -5019,6 +5019,18 @@ class ANamedPackThatIsAbsentFails(unittest.TestCase):
|
||||
self.assertIn("retroarch: FAIL (no pack in", result.stdout)
|
||||
self.assertIn("generate_pack.py --platform retroarch", result.stdout)
|
||||
|
||||
def test_all_with_no_pack_is_a_failure(self):
|
||||
"""--all on a mistyped or purged directory skipped every platform
|
||||
and exited 0, a passed integrity check that checked nothing."""
|
||||
with tempfile.TemporaryDirectory(dir=TMP_ROOT) as directory:
|
||||
result = subprocess.run(
|
||||
[sys.executable, "scripts/generate_pack.py", "--all",
|
||||
"--verify-packs", "--output-dir", directory],
|
||||
cwd=ROOT, capture_output=True, text=True, timeout=600,
|
||||
)
|
||||
self.assertEqual(result.returncode, 1)
|
||||
self.assertIn("no pack to verify", result.stdout)
|
||||
|
||||
|
||||
|
||||
class AnAliasNamesItsProfile(unittest.TestCase):
|
||||
|
||||
Reference in new issue
Block a user