diff options
Diffstat (limited to 'scripts/patchtest-send-results')
-rwxr-xr-x | scripts/patchtest-send-results | 7 |
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 | ||
55 | reply_contents = greeting + testresult + suggestions | 55 | reply_contents = greeting + testresult + suggestions |
56 | subject_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 | ||
59 | mbox = mailbox.mbox(args.patch) | ||
60 | mbox_subject = mbox[0]['subject'] | ||
61 | subject_line = f"Patchtest results for {mbox_subject}" | ||
57 | 62 | ||
58 | if "FAIL" in testresult: | 63 | if "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') |