summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorTrevor Gamblin <tgamblin@baylibre.com>2024-02-15 16:37:05 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-02-15 21:41:10 +0000
commit5c8e1e9955d6c944be42dfe690e07fdc9dc9ea3a (patch)
treed027d76eb595309492ce45320c051271d956dce4 /scripts
parent29c9b861628942c1368a1c8a1454592785ec5533 (diff)
downloadpoky-5c8e1e9955d6c944be42dfe690e07fdc9dc9ea3a.tar.gz
patchtest-send-results: use Message-ID directly
There's no need to use regex for extracting the Message-ID field from the patch email and mangle it by removing the angle brackets in the process. Pull it directly from the mbox so that Patchtest's replies have even fewer differences when compared to other replies. Also add a TODO so that it's clear this needs adjustment when full series support is added. (From OE-Core rev: 1ce51580a23869a9c0f409446ff717d471fb60db) Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/patchtest-send-results4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/patchtest-send-results b/scripts/patchtest-send-results
index 9fd24c9b95..f65d862074 100755
--- a/scripts/patchtest-send-results
+++ b/scripts/patchtest-send-results
@@ -64,7 +64,9 @@ subject_line = f"Patchtest results for {mbox_subject}"
64reply_address = mbox[0]['from'] 64reply_address = mbox[0]['from']
65 65
66# extract the message ID and use that as the in-reply-to address 66# extract the message ID and use that as the in-reply-to address
67in_reply_to = re.findall("<(.*)>", mbox[0]['Message-ID'])[0] 67# TODO: This will need to change again when patchtest can handle a whole
68# series at once
69in_reply_to = mbox[0]['Message-ID']
68 70
69# the address the results email is sent from 71# the address the results email is sent from
70from_address = "patchtest@automation.yoctoproject.org" 72from_address = "patchtest@automation.yoctoproject.org"