Skip to content

Commit

Permalink
ktest.pl: Kill test if mailer is not supported
Browse files Browse the repository at this point in the history
If the user specifies a MAILTO, but the MAILER is not supported, then
kill the test.

Signed-off-by: Steven Rostedt (VMware) <[email protected]>
  • Loading branch information
rostedt committed Apr 8, 2018
1 parent be1546b commit 8604b0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/testing/ktest/ktest.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
}
}

Expand Down

0 comments on commit 8604b0c

Please sign in to comment.