mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-21 12:55:00 +00:00
restore the original file, in case we interrupted a prev run
This commit is contained in:
parent
5c3a635eed
commit
436d0dd774
1 changed files with 5 additions and 0 deletions
|
@ -189,6 +189,11 @@ def run_test(testdir, model_name, edit_format, retries, no_test, verbose):
|
|||
if "test" not in fname.name and fname.is_file() and fname.name[0] != ".":
|
||||
fnames.append(fname)
|
||||
|
||||
# restore the original file, in case we interrupted a prev run
|
||||
# after it had saved changes
|
||||
original_fname = ORIGINAL_DNAME / testdir.name / fname.name
|
||||
shutil.copy(original_fname, fname)
|
||||
|
||||
file_list = " ".join(fname.name for fname in fnames)
|
||||
instructions = (testdir / ".docs/instructions.md").read_text()
|
||||
instructions += (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue