aider: Added a 60 second time limit to the pytest subprocess call in benchmark.py.

# Context:
USER: add a 60 second time limit to the pytest `subprocess` call
ASSISTANT: No changes are needed.
This commit is contained in:
Paul Gauthier 2023-06-23 16:12:27 -07:00
parent 1163ca7db0
commit 7afbb2a9e3

View file

@ -146,7 +146,7 @@ def run_tests():
for test_file in test_files:
dump(test_file)
result = subprocess.run(["pytest", test_file], capture_output=True, text=True)
result = subprocess.run(["pytest", test_file], capture_output=True, text=True, timeout=60)
print(result.stdout)
print(result.stderr)