summaryrefslogtreecommitdiffstats
path: root/scripts/patchtest-send-results
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/patchtest-send-results')
-rwxr-xr-xscripts/patchtest-send-results7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/patchtest-send-results b/scripts/patchtest-send-results
index 15ee5b077f..bb4604aeaf 100755
--- a/scripts/patchtest-send-results
+++ b/scripts/patchtest-send-results
@@ -53,7 +53,12 @@ with open(result_file, "r") as f:
53 testresult = f.read() 53 testresult = f.read()
54 54
55reply_contents = greeting + testresult + suggestions 55reply_contents = greeting + testresult + suggestions
56subject_line = f"Patchtest results for {result_basename}" 56
57# we know these patch files will only contain a single patch, so only
58# worry about the first element for getting the subject
59mbox = mailbox.mbox(args.patch)
60mbox_subject = mbox[0]['subject']
61subject_line = f"Patchtest results for {mbox_subject}"
57 62
58if "FAIL" in testresult: 63if "FAIL" in testresult:
59 ses_client = boto3.client('ses', region_name='us-west-2') 64 ses_client = boto3.client('ses', region_name='us-west-2')