mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-10 21:19:59 +00:00
Fix/update t/pt-agent/init_agent.t.
This commit is contained in:
@@ -150,6 +150,12 @@ sub output {
|
||||
die "I need a code argument" unless $code;
|
||||
my ($file, $stderr, $die, $trf) = @args{qw(file stderr die trf)};
|
||||
|
||||
if ( $args{debug} ) {
|
||||
my $retval = eval { $code->() };
|
||||
warn $EVAL_ERROR if $EVAL_ERROR;
|
||||
return $retval;
|
||||
}
|
||||
|
||||
my $output = '';
|
||||
{
|
||||
if ( $file ) {
|
||||
|
Reference in New Issue
Block a user