From 63cf99361d01487df978dcdb9bcd62e23b23b209 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 15 Jan 2025 13:57:54 -0800 Subject: [PATCH] ensure no loading of any other files --- benchmark/benchmark.py | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/benchmark/benchmark.py b/benchmark/benchmark.py index 1d27ab58f..92599c573 100755 --- a/benchmark/benchmark.py +++ b/benchmark/benchmark.py @@ -717,17 +717,6 @@ def run_test_real( else: 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) instructions = "" @@ -785,6 +774,7 @@ def run_test_real( dump(coder.ignore_mentions) coder.show_announcements() + coder.get_file_mentions = lambda x: set() # No loading of any other files timeouts = 0 @@ -796,6 +786,7 @@ def run_test_real( test_outcomes = [] for i in range(tries): start = time.time() + if no_aider: pass elif replay: