mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 09:14:59 +00:00
ensure no loading of any other files
This commit is contained in:
parent
1e54ca82b8
commit
63cf99361d
1 changed files with 2 additions and 11 deletions
|
@ -717,17 +717,6 @@ def run_test_real(
|
||||||
else:
|
else:
|
||||||
print(f"Warning: Solution file not found: {src}")
|
print(f"Warning: Solution file not found: {src}")
|
||||||
|
|
||||||
# Copy all test files
|
|
||||||
for file_path in test_files:
|
|
||||||
src = testdir / Path(file_path)
|
|
||||||
if src.exists():
|
|
||||||
original_fname = original_dname / testdir.name / file_path
|
|
||||||
if original_fname.exists():
|
|
||||||
os.makedirs(src.parent, exist_ok=True)
|
|
||||||
shutil.copy(original_fname, src)
|
|
||||||
else:
|
|
||||||
print(f"Warning: Test file not found: {src}")
|
|
||||||
|
|
||||||
file_list = " ".join(fname.name for fname in fnames)
|
file_list = " ".join(fname.name for fname in fnames)
|
||||||
|
|
||||||
instructions = ""
|
instructions = ""
|
||||||
|
@ -785,6 +774,7 @@ def run_test_real(
|
||||||
dump(coder.ignore_mentions)
|
dump(coder.ignore_mentions)
|
||||||
|
|
||||||
coder.show_announcements()
|
coder.show_announcements()
|
||||||
|
coder.get_file_mentions = lambda x: set() # No loading of any other files
|
||||||
|
|
||||||
timeouts = 0
|
timeouts = 0
|
||||||
|
|
||||||
|
@ -796,6 +786,7 @@ def run_test_real(
|
||||||
test_outcomes = []
|
test_outcomes = []
|
||||||
for i in range(tries):
|
for i in range(tries):
|
||||||
start = time.time()
|
start = time.time()
|
||||||
|
|
||||||
if no_aider:
|
if no_aider:
|
||||||
pass
|
pass
|
||||||
elif replay:
|
elif replay:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue