fix: Use cargo test for rust tests

This commit is contained in:
Paul Gauthier 2024-12-17 16:48:31 -08:00 committed by Paul Gauthier (aider)
parent 54ca7ceac8
commit f6f05fa0c6

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import datetime
import json
import os
@ -727,6 +727,7 @@ def run_test_real(
break
try:
# pass test_files in, and choose the test command based on them ai!
errors = run_unit_tests(testdir, history_fname)
except subprocess.TimeoutExpired:
errors = "Tests timed out!"
@ -790,7 +791,7 @@ def run_unit_tests(testdir, history_fname):
timeout = 60
command = ["pytest"]
command = "cargo test -- --include-ignored".split()
print(" ".join(command))
result = subprocess.run(