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.

11 lines
551 B

1 week ago
# -*- coding: utf-8 -*-
"""票 06 补测驱动:后台跑 t06-test2.cmd(opportunity 单模块 test),输出落 log。"""
import io, sys, subprocess
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
p = subprocess.run(['cmd', '/c', r'e:\code\crm-backend-matt\.scratch\opportunity-bugfix\t06-test2.cmd'],
capture_output=True, text=True, errors='replace')
open(r'e:\code\crm-backend-matt\.scratch\opportunity-bugfix\t06-test2.log', 'w',
encoding='utf-8').write(p.stdout or '')
print('EXIT=', p.returncode)