test: pin isolated full9 bodyless inlet comparison

This commit is contained in:
TRON committed 2026-10-18 09:18:47 -07:00
1 parent 926ca27407
commit 939c10c867
7 files changed
+394 -3

No files matched your search

@@ -89,9 +89,9 @@ def number(value):
return value if math.isfinite(value) else ('NaN' if math.isnan(value) else ('+Inf' if value>0 else '-Inf'))
def source_config(source):
manifest=json.loads((HERE/'source_manifest.json').read_text())
for name,digest in manifest['sha256'].items():
def source_config(source, manifest_path=None):
manifest=json.loads((HERE/'source_manifest.json' if manifest_path is None else manifest_path).read_text())
for name,digest in {**manifest['sha256'],**manifest.get('runtime_sha256',{})}.items():
if hashlib.sha256((source/name).read_bytes()).hexdigest()!=digest:
raise ValueError('Pinned source mismatch: '+name)
sys.path.insert(0,str(source/'src')); sys.path.insert(0,str(source/'tests/validation'))