Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 27d9d42

Browse files
committed
minor adjustments - issue #311
1 parent 1bb061f commit 27d9d42

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

extra/shutils/regressiontest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
test_count = int(failed_test[1])
3838
parse = failed_test[3] if failed_test[3] else None
3939
output_folder = failed_test[4]
40-
traceback = failed_test[5]
40+
traceback = bool(failed_test[5])
4141
detection = True if failed_test[6] else False
4242

4343
TEST_COUNTS.append(test_count)
@@ -81,7 +81,7 @@
8181

8282
for test_count, attachment in ATTACHMENTS:
8383
attachment = MIMEText(attachment)
84-
attachment.add_header('Content-Disposition', 'attachment', filename="%d.console_output.txt" % test_count)
84+
attachment.add_header('Content-Disposition', 'attachment', filename="test_case_%d_console_output.txt" % test_count)
8585
msg.attach(attachment)
8686

8787
s = smtplib.SMTP(host=SMTP_SERVER, port=SMTP_PORT, timeout=SMTP_TIMEOUT)

0 commit comments

Comments
 (0)