mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
fix: Correctly find benchmark markdown files
This commit is contained in:
parent
5af108ccee
commit
8911f0f217
1 changed files with 2 additions and 2 deletions
|
@ -74,7 +74,7 @@ def find_latest_benchmark_dir():
|
||||||
|
|
||||||
for d in recent_dirs:
|
for d in recent_dirs:
|
||||||
# Look for .md files in subdirectories
|
# Look for .md files in subdirectories
|
||||||
for md_file in d.glob("*/.*.md"):
|
for md_file in d.glob("*/exercises/practice/*/.*.md"):
|
||||||
if md_file.is_file():
|
if md_file.is_file():
|
||||||
mtime = md_file.stat().st_mtime
|
mtime = md_file.stat().st_mtime
|
||||||
if mtime > latest_time:
|
if mtime > latest_time:
|
||||||
|
@ -847,6 +847,7 @@ def run_test_real(
|
||||||
return results
|
return results
|
||||||
|
|
||||||
|
|
||||||
|
# pass in the original_dname, and copy the test_files into the test_dir before running tests ai!
|
||||||
def run_unit_tests(testdir, history_fname, test_files):
|
def run_unit_tests(testdir, history_fname, test_files):
|
||||||
timeout = 60
|
timeout = 60
|
||||||
|
|
||||||
|
@ -880,7 +881,6 @@ def run_unit_tests(testdir, history_fname, test_files):
|
||||||
text=True,
|
text=True,
|
||||||
timeout=timeout,
|
timeout=timeout,
|
||||||
cwd=testdir,
|
cwd=testdir,
|
||||||
shell=True,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
success = result.returncode == 0
|
success = result.returncode == 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue