summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <rostedt@goodmis.org>2018-04-06 17:46:27 -0400
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2018-04-07 20:19:42 -0400
commit59f89eb1e3ddccdef9a154dd667facfc15bceab1 (patch)
tree122fd6696b8770cd13ae86745299f2684f446832 /tools
parent255769a17b86838eb724da5501eba6a31b0ed1ba (diff)
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>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/testing/ktest/ktest.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl
index ac6750bb5942..f487f91ccf03 100755
--- a/tools/testing/ktest/ktest.pl
+++ b/tools/testing/ktest/ktest.pl
@@ -4135,12 +4135,12 @@ sub set_test_option {
sub _mailx_send {
my ($subject, $message) = @_;
- system("$mail_path/$mailer -s \'$subject\' $mailto <<< \'$message\'");
+ run_command "$mail_path/$mailer -s \'$subject\' $mailto <<< \'$message\'";
}
sub _sendmail_send {
my ($subject, $message) = @_;
- system("echo -e \"Subject: $subject\n\n$message\" | $mail_path/sendmail -t $mailto");
+ run_command "echo \'Subject: $subject\n\n$message\' | $mail_path/sendmail -t $mailto";
}
sub find_mailer {