Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ktest.pl: Use run_command to execute sending mail

Instead of open coding system() call, use run_command which will log the
sending of email as well.

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>

+2 -2
+2 -2
tools/testing/ktest/ktest.pl
··· 4135 4135 4136 4136 sub _mailx_send { 4137 4137 my ($subject, $message) = @_; 4138 - system("$mail_path/$mailer -s \'$subject\' $mailto <<< \'$message\'"); 4138 + run_command "$mail_path/$mailer -s \'$subject\' $mailto <<< \'$message\'"; 4139 4139 } 4140 4140 4141 4141 sub _sendmail_send { 4142 4142 my ($subject, $message) = @_; 4143 - system("echo -e \"Subject: $subject\n\n$message\" | $mail_path/sendmail -t $mailto"); 4143 + run_command "echo \'Subject: $subject\n\n$message\' | $mail_path/sendmail -t $mailto"; 4144 4144 } 4145 4145 4146 4146 sub find_mailer {