[Rt-commit] rt branch, 4.2/tests-without-sendmail, created. rt-4.2.13-42-gf94b7ad

Alex Vandiver alexmv at bestpractical.com
Mon Aug 1 02:20:48 EDT 2016


The branch, 4.2/tests-without-sendmail has been created
        at  f94b7adcf95cb89cdec16351530b42e35290bbde (commit)

- Log -----------------------------------------------------------------
commit f94b7adcf95cb89cdec16351530b42e35290bbde
Author: Alex Vandiver <alex at chmrr.net>
Date:   Sun Jul 31 23:13:25 2016 -0700

    Allow tests to pass without a /usr/bin/sendmail
    
    The installer tests include testing the page which configures outgoing
    mail.  This page prompts for where the 'sendmail' binary is, and
    checks that a file exists there.
    
    The page defaults to `/usr/bin/sendmail`, which is installed on nearly
    all systems, but may not on a system which only has the bar minimum
    requirements to test RT -- on such systems, the test thus fails.
    
    Provide a path to a known-existent binary which can suit.  All the
    installer checks is that the file exists, simply provide the path to a
    fake sendmail used elsewhere in tests.

diff --git a/t/web/installer.t b/t/web/installer.t
index 79198a7..a690e1a 100644
--- a/t/web/installer.t
+++ b/t/web/installer.t
@@ -71,9 +71,12 @@ diag "Walking through install screens setting defaults";
     }, 'set root password');
 
     # Mail options
+    my $sendmail = File::Spec->rel2abs( File::Spec->catfile(
+        't', 'security', 'fake-sendmail' ) );
     $m->submit_form_ok({
         with_fields => {
-            OwnerEmail  => 'admin at example.com',
+            OwnerEmail   => 'admin at example.com',
+            SendmailPath => $sendmail,
         },
     }, 'set admin email');
 

-----------------------------------------------------------------------


More information about the rt-commit mailing list