Skip to content

Commit 5d74b6d

Browse files
Capture more debug output
1 parent bc39d14 commit 5d74b6d

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

t/mail/dashboard-jschart.t

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,15 @@ $m->field( 'Hour' => '06:00' );
7373
$m->click_button( name => 'Save' );
7474
$m->content_contains('Subscribed to dashboard dashboard foo');
7575

76-
RT::Test->run_and_capture(
76+
# TEMP DEBUG: capture and surface the rt-email-dashboards subprocess output
77+
# (STDERR is merged in via 2>&1), which carries Mailer.pm's JSCHART-DEBUG lines.
78+
my ( $dash_exit, $dash_output ) = RT::Test->run_and_capture(
7779
command => $RT::SbinPath . '/rt-email-dashboards',
7880
all => 1,
7981
);
82+
warn "=== rt-email-dashboards output (exit $dash_exit) ===\n"
83+
. ( defined $dash_output ? $dash_output : '(no output)' )
84+
. "\n=== end rt-email-dashboards output ===\n";
8085

8186
my @mails = RT::Test->fetch_caught_mails;
8287
is @mails, 1, "Got a dashboard mail";

0 commit comments

Comments
 (0)