mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-22 05:14:59 +00:00
fix
This commit is contained in:
parent
885a2341cb
commit
0659d4e295
1 changed files with 4 additions and 1 deletions
|
@ -147,12 +147,15 @@ def run_tests():
|
||||||
for test_file in test_files:
|
for test_file in test_files:
|
||||||
dump(test_file)
|
dump(test_file)
|
||||||
try:
|
try:
|
||||||
result = subprocess.run(["pytest", test_file], capture_output=True, text=True, timeout=60)
|
result = subprocess.run(
|
||||||
|
["pytest", test_file], capture_output=True, text=True, timeout=60
|
||||||
|
)
|
||||||
print(result.stdout)
|
print(result.stdout)
|
||||||
print(result.stderr)
|
print(result.stderr)
|
||||||
except subprocess.TimeoutExpired:
|
except subprocess.TimeoutExpired:
|
||||||
all_tests_passed = False
|
all_tests_passed = False
|
||||||
print(f"Test {test_file} timed out")
|
print(f"Test {test_file} timed out")
|
||||||
|
continue
|
||||||
|
|
||||||
if result.returncode != 0:
|
if result.returncode != 0:
|
||||||
all_tests_passed = False
|
all_tests_passed = False
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue