Integrate corrected char expressions into Liam code36

This commit is contained in:
zenord
2026-10-14 20:46:10 +08:00
parent 0c386ac8ec
commit 99a03e0487
23 changed files with 607 additions and 59 deletions
+2 -1
View File
@@ -175,7 +175,8 @@ def check_bundle(manifest,expected,output,user_authorized_debug=False):
require(p.stat().st_size==row['bytes'] and p.stat().st_size<=128_000_000 and file_sha(p)==row['sha256'],'declared file mismatch: '+name)
table[name]={'sha256':row['sha256'],'bytes':row['bytes']}
require(all(table.get(name)==row for name,row in files.items()),'inventory missing/mismatching referenced file')
require(not user_authorized_debug or expected=='208f703ed92bf795bfeb78a1cef89b67bed2e45da80038a56157fd1ecd4cfa93','exact user-authorized debug index required')
require(not user_authorized_debug or any(row.get('userAuthorizedDebug') is True and row['indexSha256']==expected
for row in read_json(ROOT/'manifests/character-build-profiles.json')['mediaBundles'].values()),'exact user-authorized debug index required')
log=output/'production-index-tests.txt'
with log.open('x') as f:
result=subprocess.run([sys.executable,str(ROOT/'scripts/check-reply-regressions.py'),'--suite','avatar','--index-manifest',str(manifest),*(['--user-authorized-debug-sha',expected] if user_authorized_debug else [])],stdout=f,stderr=subprocess.STDOUT,timeout=180)