diff options
author | Trevor Gamblin <tgamblin@baylibre.com> | 2024-02-15 16:37:05 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-02-15 21:41:08 +0000 |
commit | 1ce51580a23869a9c0f409446ff717d471fb60db (patch) | |
tree | ba77005be1f6fd6a27d5f2d846b0eab19bc4121b /scripts | |
parent | 2fe9097c8c3944ab89d12fd29bcd0fc2d0d195e3 (diff) | |
download | openembedded-core-contrib-1ce51580a23869a9c0f409446ff717d471fb60db.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.
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/patchtest-send-results | 4 |
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}" reply_address = mbox[0]['from'] # extract the message ID and use that as the in-reply-to address -in_reply_to = re.findall("<(.*)>", mbox[0]['Message-ID'])[0] +# TODO: This will need to change again when patchtest can handle a whole +# series at once +in_reply_to = mbox[0]['Message-ID'] # the address the results email is sent from from_address = "patchtest@automation.yoctoproject.org" |