mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-11 20:43:50 -06:00
fix: count the pack's .nomedia in its list test
This commit is contained in:
1 parent
39bc5f020b
commit
6e825e8137
1 file changed
+9
-2
@@ -4313,9 +4313,16 @@ class DataDirectoriesAreInstalled(unittest.TestCase):
|
||||
manifest = json.loads((REPO_ROOT / "install" / "retroarch.json").read_text())
|
||||
dirs = manifest.get("data_directories") or []
|
||||
files = sum(len(d["files"]) for d in dirs)
|
||||
sys.path.insert(0, str(REPO_ROOT / "scripts"))
|
||||
import generate_pack
|
||||
|
||||
written = generate_pack.PACK_DOCUMENTS + generate_pack.pack_markers(
|
||||
"retroarch", None, str(REPO_ROOT / "platforms"))
|
||||
self.assertEqual(written, ("README.txt", "manifest.json", ".nomedia"))
|
||||
self.assertEqual(
|
||||
manifest["pack_files"] - manifest["total_files"] - files,
|
||||
2, "the pack's two documents are the only files the installer lacks",
|
||||
manifest["pack_files"] - manifest["total_files"] - files, len(written),
|
||||
"the pack's two documents and its .nomedia are the only files the "
|
||||
"installer lacks",
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user