Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions framework/ServeTest/test_ci_base_mtp.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,10 @@ def test_text_diff():
# 打印log/worklog.0
if os.path.exists('log/workerlog.0'):
with open('log/workerlog.0', 'r') as file:
log_contents = file.read()
print("################# workerlog.0 ##################", log_contents)
lines = file.readlines()
log_contents = "".join(lines[-200:])
print("################# workerlog.0 (last 200 lines) ##################")
print(log_contents)
pytest.fail(f"解析失败: {e}")
print("\nresult:\n", result)
# 对比baseline
Expand Down Expand Up @@ -180,8 +182,10 @@ def test_picture_diff():
# 打印log/worklog.0
if os.path.exists('log/workerlog.0'):
with open('log/workerlog.0', 'r') as file:
log_contents = file.read()
print("################# workerlog.0 ##################", log_contents)
lines = file.readlines()
log_contents = "".join(lines[-200:])
print("################# workerlog.0 (last 200 lines) ##################")
print(log_contents)
pytest.fail(f"解析失败: {e}")
print("\nresult:\n", result)
# 对比baseline
Expand Down
Loading