Skip to content

Commit dcec604

Browse files
committed
dump logs in TAP-tests
1 parent eb07cf6 commit dcec604

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Cluster.pm

+12
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,18 @@ sub stop
208208
my $nodes = $self->{nodes};
209209
$mode = 'fast' unless defined $mode;
210210

211+
diag("Dumping logs:");
212+
foreach my $node (@$nodes) {
213+
diag("##################################################################");
214+
diag($node->{_logfile});
215+
diag("##################################################################");
216+
my $filename = $node->{_logfile};
217+
open my $fh, '<', $filename or die "error opening $filename: $!";
218+
my $data = do { local $/; <$fh> };
219+
diag($data);
220+
diag("##################################################################\n\n");
221+
}
222+
211223
my $ok = 1;
212224
diag("stopping cluster ${mode}ly");
213225

0 commit comments

Comments
 (0)