[PATCH yocto-autobuilder-helper] send-qa-email: Save the QA email in case it doesn't reach the mailing lists.


Michael Halstead
 

Signed-off-by: Michael Halstead <mhalstead@...>
---
scripts/send-qa-email | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/scripts/send-qa-email b/scripts/send-qa-email
index 6785df3..1b69307 100755
--- a/scripts/send-qa-email
+++ b/scripts/send-qa-email
@@ -145,6 +145,10 @@ Build hash information: \n

''' % (args.release, args.publish_dir.replace(web_root, web_url), buildhashes)

+# Store a copy of the email in case it doesn't reach the lists
+with open(os.path.join(args.publish_dir, "qa-email"), "wb") as qa_email:
+ qa_email.write(email.encode('utf-8'))
+
utils.printheader("Sending QA email")
env = os.environ.copy()
# Many distros have sendmail in */sbin
--
2.29.2

Join yocto@lists.yoctoproject.org to automatically receive all group messages.