取消模拟计算过程中的计算结果屏幕输出
This commit is contained in:
@@ -298,7 +298,7 @@ def run_project(name: str, readable_output: bool = False) -> str:
|
|||||||
|
|
||||||
# DingZQ, 2025-06-02, 使用subprocess.Popen捕获输出到全局日志, 原来的代码是这么写的
|
# DingZQ, 2025-06-02, 使用subprocess.Popen捕获输出到全局日志, 原来的代码是这么写的
|
||||||
result = os.system(command)
|
result = os.system(command)
|
||||||
logging.info(f"Simulation result: {result}")
|
#logging.info(f"Simulation result: {result}")
|
||||||
|
|
||||||
if result != 0:
|
if result != 0:
|
||||||
data['simulation_result'] = 'failed'
|
data['simulation_result'] = 'failed'
|
||||||
@@ -315,7 +315,7 @@ def run_project(name: str, readable_output: bool = False) -> str:
|
|||||||
data['output'] = dump_output_binary(opt)
|
data['output'] = dump_output_binary(opt)
|
||||||
|
|
||||||
data['report'] = dump_report(rpt)
|
data['report'] = dump_report(rpt)
|
||||||
logging.info(f"Report: {data['report']}")
|
#logging.info(f"Report: {data['report']}")
|
||||||
|
|
||||||
return json.dumps(data)
|
return json.dumps(data)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user