Skip to content

Commit 5adeece

Browse files
authored
Merge pull request #303 from ExaWorks/writing_correct_programs_is_hard
Fixed issue in patching config file to update repo. If the repo was o…
2 parents 43277ac + 858a1ef commit 5adeece

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/ci_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def patch_file(file_name: str) -> None:
175175
# when invoking a subprocess, bash stores the location where
176176
# it's supposed to continue parsing from, so it's a good idea
177177
# to to not move things around
178-
line = line.replace(OLD_REPO, NEW_REPO)[:-1] + ' \n'
178+
line = line.rstrip('\n').replace(OLD_REPO, NEW_REPO) + ' \n'
179179
outf.write(line)
180180
os.chmod(file_name + '._new_', os.stat(file_name).st_mode)
181181
os.rename(file_name + '._new_', file_name)

0 commit comments

Comments
 (0)