You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
626 B

1 week ago
# -*- 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'):
src = os.path.join(d, name)
if os.path.exists(src):
dst = os.path.join(d, name + '.bak-pre-t05')
shutil.copy2(src, dst)
print(f'backed up {name} ({os.path.getsize(src)} bytes)')
else:
print(f'{name} 不存在(跳过)')