Skip to content

Commit

Permalink
Merge branch 'bugfix/ci_config_merge_newlines' into 'master'
Browse files Browse the repository at this point in the history
ci: Support joining sdkconfig.ci files that don't end in a newline

See merge request espressif/esp-idf!8198
  • Loading branch information
igrr committed Apr 1, 2020
2 parents 2f0a57d + ff427c9 commit 1ab285b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/find_build_apps/cmake.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ def build(build_item): # type: (BuildItem) -> None
logging.debug("Appending {} to sdkconfig".format(sdkconfig_name))
with open(sdkconfig_path, "r") as f_in:
for line in f_in:
if not line.endswith("\n"):
line += "\n"
f_out.write(os.path.expandvars(line))
# Also save the sdkconfig file in the build directory
shutil.copyfile(
Expand Down

0 comments on commit 1ab285b

Please sign in to comment.