Re: [PATCH v3 1/4] Ktest: add email support

From: Tim Tianyang Chen
Date: Fri Apr 06 2018 - 18:20:00 EST




On 04/06/2018 11:24 AM, Steven Rostedt wrote:
On Mon, 26 Mar 2018 13:08:01 -0700
Tim Tianyang Chen <tianyang.chen@xxxxxxxxxx> wrote:

Users can define optional variables to get email notifications.
Ktest can send emails when the script:
* was started
* failed with fatal errors and called dodie()
* completed all testing

Users have to setup the mailer provided in config prior to using this script.
Supported mailers: mailx, mail, sendmail
mailer specific routines are _sendmail_send(), _mailx_send()

Suggested-by: Dhaval Giani <dhaval.giani@xxxxxxxxxx>
Signed-off-by: Tim Tianyang Chen <tianyang.chen@xxxxxxxxxx>

---
changes since v2:
coding style fix for option maps and if statements
moved sig int handeling to another patch
changes since v1:
added options for when to send emails to option_map
---
ktest.pl | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---
1 file changed, 58 insertions(+), 3 deletions(-)

diff --git a/ktest.pl b/ktest.pl
index 0c8b61f8398e..9469783bc6c1 100755
--- a/ktest.pl
+++ b/ktest.pl
If you can, please use git to make your diffs.

The full path name needs to be here.

tools/testing/ktest/ktest.pl

Sorry I was working on my private folder, version tracked with other stuff. Just re-sent them.

Tim