mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-21 12:55:00 +00:00
aider: Refactor unit tests to run using docker python3.8 and mount only the file being run.
# Context: USER: run the unit tests using docker python3.8 mounting just the file being run
This commit is contained in:
parent
4d3c77332f
commit
d13ff918de
1 changed files with 1 additions and 1 deletions
|
@ -353,7 +353,7 @@ def run_unit_tests(testdir, history_fname):
|
||||||
dump(test_file)
|
dump(test_file)
|
||||||
try:
|
try:
|
||||||
result = subprocess.run(
|
result = subprocess.run(
|
||||||
["python", test_file],
|
["docker", "run", "--rm", "-v", f"{test_file}:/app/{test_file.name}", "python:3.8", "python", f"/app/{test_file.name}"],
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
stderr=subprocess.STDOUT,
|
stderr=subprocess.STDOUT,
|
||||||
text=True,
|
text=True,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue