pushimage: fix tobesigned state file
We write out some debugging states to the tobesigned files. The python
rewrite added a bug where newlines were omitted between the entries.
This isn't a big problem as the content isn't used directly (it's meant
for humans trying to debug stuff), but let's fix it anyway. For the
humans.
BUG=None
TEST=`./scripts/pushimage_unittest.py` passes
Change-Id: I7950e66ee08b811a6e06c41e94d9748f579b3f96
Reviewed-on: https://chromium-review.googlesource.com/184810
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
diff --git a/scripts/pushimage.py b/scripts/pushimage.py
index 4895b23..b312b8f 100644
--- a/scripts/pushimage.py
+++ b/scripts/pushimage.py
@@ -169,7 +169,7 @@
'HOSTNAME=%s' % cros_build_lib.GetHostName(fully_qualified=True),
'GIT_REV=%s' % git.RunGit(constants.CHROMITE_DIR, ['rev-parse', 'HEAD'])
]
- osutils.WriteFile(temp_tbs_file.name, lines)
+ osutils.WriteFile(temp_tbs_file.name, '\n'.join(lines))
ctx.Copy(temp_tbs_file.name, tbs_path)
return tbs_path