mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
catch all exceptions in the benchmark
This commit is contained in:
parent
3e4fca2675
commit
9cdd9e12c3
1 changed files with 12 additions and 1 deletions
|
@ -7,6 +7,7 @@ import re
|
|||
import shutil
|
||||
import subprocess
|
||||
import time
|
||||
import traceback
|
||||
from collections import defaultdict
|
||||
from json.decoder import JSONDecodeError
|
||||
from pathlib import Path
|
||||
|
@ -927,7 +928,17 @@ def get_replayed_content(replay_dname, test_dname):
|
|||
return "".join(res)
|
||||
|
||||
|
||||
def run_test(
|
||||
def run_test(*args, **kwargs):
|
||||
try:
|
||||
return run_test_real(*args, **kwargs)
|
||||
except Exception as err:
|
||||
print("=" * 40)
|
||||
print("Test failed")
|
||||
print(err)
|
||||
traceback.print_exc()
|
||||
|
||||
|
||||
def run_test_real(
|
||||
original_dname,
|
||||
testdir,
|
||||
model_name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue