diff options
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2018-04-06 23:42:34 +0300 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2018-04-08 03:18:25 +0300 |
commit | 8604b0c4bc9a39f8fa0301bbb15146bcda2a44f7 (patch) | |
tree | de55d09eeb934a158464e942d3f58da860ba5db4 /tools | |
parent | be1546b87f3b60f107b8f8dfef0e268cc12792f1 (diff) | |
download | linux-8604b0c4bc9a39f8fa0301bbb15146bcda2a44f7.tar.xz |
ktest.pl: Kill test if mailer is not supported
If the user specifies a MAILTO, but the MAILER is not supported, then
kill the test.
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/testing/ktest/ktest.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl index 637545bd9e98..3400a23e6a41 100755 --- a/tools/testing/ktest/ktest.pl +++ b/tools/testing/ktest/ktest.pl @@ -4168,7 +4168,7 @@ sub send_email { } if ($mailer eq "mail" || $mailer eq "mailx"){ _mailx_send(@_);} elsif ($mailer eq "sendmail" ) { _sendmail_send(@_);} - else { doprint "\nYour mailer: $mailer is not supported.\n" } + else { die "\nYour mailer: $mailer is not supported.\n" } } } |