Include the current addon, terrain integrations, tools, regression tests and recorded development evidence.
12 lines
552 B
Python
12 lines
552 B
Python
from pathlib import Path
|
|
import json,hashlib
|
|
R=Path('/home/jakub/devel/escapistsrereintroduced');P=Path('/tmp/erri-patrol-start-1659')
|
|
sha=lambda p:hashlib.sha256(p.read_bytes()).hexdigest()
|
|
m=json.loads((P/'source-manifest.json').read_text())
|
|
for n,v in m['files'].items():
|
|
assert sha(R/n)==v['baseline_sha256'],n
|
|
assert sha(P/n)==v['proposed_sha256'],n
|
|
for n in m['files']:(R/n).write_bytes((P/n).read_bytes())
|
|
for n,v in m['files'].items():assert sha(R/n)==v['proposed_sha256'],n
|
|
print('Integrated exactly two reviewed fixture/regression files.')
|