# -*- coding: utf-8 -*- """票 05:e2e 回归报告整理——本次 F14/PR 结果另存回归证据,恢复原始报告。""" import io, sys, shutil, os sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8') d = r'e:\code\crm-backend-matt\.scratch\opportunity-e2e' for name in ('report-core.md', 'e2e-core-result.json', 'report-rules.md', 'e2e-rules-result.json'): cur = os.path.join(d, name) bak = os.path.join(d, name + '.bak-pre-t05') reg = os.path.join(d, name.replace('.md', '-t05-regression.md').replace('.json', '-t05-regression.json')) if os.path.exists(cur): shutil.copy2(cur, reg) print(f'saved regression copy: {name} -> {os.path.basename(reg)}') if os.path.exists(bak): shutil.copy2(bak, cur) print(f'restored original: {name}')