mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 08:44:59 +00:00
fix: Use relative paths for ignored files, remove redundant try
This commit is contained in:
parent
def2d4bac9
commit
114b156d74
1 changed files with 7 additions and 7 deletions
|
@ -674,8 +674,8 @@ def run_test_real(
|
||||||
)
|
)
|
||||||
|
|
||||||
# Add all files under .meta and .docs directories
|
# Add all files under .meta and .docs directories
|
||||||
ignore_files.update(str(p) for p in testdir.glob(".meta/**/*"))
|
ignore_files.update(str(p.relative_to(testdir)) for p in testdir.glob(".meta/**/*"))
|
||||||
ignore_files.update(str(p) for p in testdir.glob(".docs/**/*"))
|
ignore_files.update(str(p.relative_to(testdir)) for p in testdir.glob(".docs/**/*"))
|
||||||
|
|
||||||
# Also ignore test & example files
|
# Also ignore test & example files
|
||||||
ignore_files.update(test_files)
|
ignore_files.update(test_files)
|
||||||
|
@ -817,11 +817,11 @@ def run_test_real(
|
||||||
try:
|
try:
|
||||||
errors = run_unit_tests(original_dname, testdir, history_fname, test_files)
|
errors = run_unit_tests(original_dname, testdir, history_fname, test_files)
|
||||||
except subprocess.TimeoutExpired:
|
except subprocess.TimeoutExpired:
|
||||||
try:
|
#try:
|
||||||
errors = run_unit_tests(original_dname, testdir, history_fname, test_files)
|
# errors = run_unit_tests(original_dname, testdir, history_fname, test_files)
|
||||||
except subprocess.TimeoutExpired:
|
#except subprocess.TimeoutExpired:
|
||||||
errors = "Tests timed out!"
|
errors = "Tests timed out!"
|
||||||
timeouts += 1
|
timeouts += 1
|
||||||
|
|
||||||
if errors:
|
if errors:
|
||||||
test_outcomes.append(False)
|
test_outcomes.append(False)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue