]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ktest.pl: If size of log is too big to email, email error message
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Mon, 30 Nov 2020 21:32:55 +0000 (16:32 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Dec 2020 12:28:19 +0000 (13:28 +0100)
commitc15018f5a0090465502492617f4f28b7993f9efc
tree3f9623d555062347908a3d297ac5f4151f429844
parent4dd9051068f536453e7e8fedc7c6cc873a0910d7
ktest.pl: If size of log is too big to email, email error message

commit 8cd6bc0359deebd8500e6de95899a8a78d3ec4ba upstream.

If the size of the error log is too big to send via email, and the sending
fails, it wont email any result. This can be confusing for the user who is
waiting for an email on the completion of the tests.

If it fails to send email, then try again without the log file stating that
it failed to send an email. Obviously this will not be of use if the sending
of email failed for some other reasons, but it will at least give the user
some information when it fails for the most common reason.

Cc: stable@vger.kernel.org
Fixes: c2d84ddb338c8 ("ktest.pl: Add MAIL_COMMAND option to define how to send email")
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/ktest/ktest.pl