mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-12-03 14:58:51 -06:00
refactor: integrity reads the one pack scope
This commit is contained in:
1 parent
efd168dc47
commit
4cefc91ed8
2 files changed
+5
-11
No files matched your search
@@ -23,7 +23,7 @@ from resolve.validation import (
|
|||||||
)
|
)
|
||||||
from resolve.nativemode import hash_mismatch_excludes_file
|
from resolve.nativemode import hash_mismatch_excludes_file
|
||||||
import sys
|
import sys
|
||||||
from resolve.cores import filter_systems_by_target
|
from resolve.cores import platform_scope_systems
|
||||||
from core.hashing import (
|
from core.hashing import (
|
||||||
compute_hashes, md5_composite, md5_composite_of, md5sum, parse_hash_list,
|
compute_hashes, md5_composite, md5_composite_of, md5sum, parse_hash_list,
|
||||||
stream_hashes,
|
stream_hashes,
|
||||||
@@ -978,14 +978,8 @@ def verify_pack_against_platform(
|
|||||||
)
|
)
|
||||||
opts = _PlatformCheckSettings(**options)
|
opts = _PlatformCheckSettings(**options)
|
||||||
config, emu_profiles = _cut_config(platform_name, platforms_dir, target_cores, opts)
|
config, emu_profiles = _cut_config(platform_name, platforms_dir, target_cores, opts)
|
||||||
expected_systems = config.get("systems", {})
|
# The systems the builder packed, by the one rule verify and the pack read.
|
||||||
if target_cores is not None:
|
expected_systems = platform_scope_systems(config, emu_profiles, target_cores)
|
||||||
expected_systems = filter_systems_by_target(
|
|
||||||
expected_systems,
|
|
||||||
emu_profiles,
|
|
||||||
target_cores,
|
|
||||||
resolve_platform_cores(config, emu_profiles),
|
|
||||||
)
|
|
||||||
expect = _Expectation(
|
expect = _Expectation(
|
||||||
config, emu_profiles, expected_systems,
|
config, emu_profiles, expected_systems,
|
||||||
_region_drops(
|
_region_drops(
|
||||||
|
|||||||
+2
-2
@@ -6435,9 +6435,9 @@ struct BurnDriver BurnDrvneogeo = {
|
|||||||
"the pack verifier takes no target, so it cannot narrow by one",
|
"the pack verifier takes no target, so it cannot narrow by one",
|
||||||
)
|
)
|
||||||
self.assertIn(
|
self.assertIn(
|
||||||
"filter_systems_by_target(",
|
"platform_scope_systems(config, emu_profiles, target_cores)",
|
||||||
source,
|
source,
|
||||||
"the baseline expectation is not narrowed by the target",
|
"the baseline expectation is not narrowed by the target, as the pack and verify narrow it",
|
||||||
)
|
)
|
||||||
self.assertIn(
|
self.assertIn(
|
||||||
"target_cores=target_cores",
|
"target_cores=target_cores",
|
||||||
|
|||||||
Reference in new issue
Block a user