Skip to content

Commit

Permalink
Merge pull request #513 from Soulofdestiny/more_verbose_in_log
Browse files Browse the repository at this point in the history
Increase verbosity in os-autoinst logfile
  • Loading branch information
coolo committed Jun 10, 2016
2 parents bbe3648 + 0a1a616 commit e414f8d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion basetest.pm
Original file line number Diff line number Diff line change
Expand Up @@ -322,10 +322,12 @@ sub runtest {
}
# show a text result with the die message unless the die was internally generated
if (!$internal) {
my $msg = "# Test died:\n$@\n";
bmwqemu::diag($msg);
my $details = {result => 'fail'};
my $text_fn = $self->next_resultname('txt');
open my $fd, ">", bmwqemu::result_dir() . "/$text_fn";
print $fd "# Test died:\n$@\n";
print $fd $msg;
close $fd;
$details->{text} = $text_fn;
$details->{title} = 'Failed';
Expand Down

0 comments on commit e414f8d

Please sign in to comment.