OSDN Git Service

ktest.pl: Kill test if mailer is not supported
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 6 Apr 2018 20:42:34 +0000 (16:42 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Sun, 8 Apr 2018 00:18:25 +0000 (20:18 -0400)
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>
tools/testing/ktest/ktest.pl

index 637545b..3400a23 100755 (executable)
@@ -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" }
     }
 }