mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-06 12:45:00 +00:00
chore: Add cleanup for node_modules directories in benchmark tests
This commit is contained in:
parent
c0be857f37
commit
729354b038
1 changed files with 9 additions and 0 deletions
|
@ -872,6 +872,15 @@ def run_test_real(
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"Failed to clean up Java build directory: {e}")
|
print(f"Failed to clean up Java build directory: {e}")
|
||||||
|
|
||||||
|
# Node.js node_modules directories
|
||||||
|
node_modules_dir = testdir / "node_modules"
|
||||||
|
if node_modules_dir.exists():
|
||||||
|
try:
|
||||||
|
shutil.rmtree(node_modules_dir)
|
||||||
|
print(f"Cleaned up Node.js node_modules directory: {node_modules_dir}")
|
||||||
|
except Exception as e:
|
||||||
|
print(f"Failed to clean up Node.js node_modules directory: {e}")
|
||||||
|
|
||||||
results = dict(
|
results = dict(
|
||||||
testdir=str(testdir),
|
testdir=str(testdir),
|
||||||
testcase=testdir.name,
|
testcase=testdir.name,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue