Commit 2c059c86 authored by Peter Eisentraut's avatar Peter Eisentraut

Add $Test::Builder::Level to pgbench test functions

same as c4309f4a
parent 68370786
......@@ -13,6 +13,8 @@ $node->start;
# invoke pgbench
sub pgbench
{
local $Test::Builder::Level = $Test::Builder::Level + 1;
my ($opts, $stat, $out, $err, $name, $files) = @_;
my @cmd = ('pgbench', split /\s+/, $opts);
my @filenames = ();
......@@ -798,6 +800,8 @@ pgbench(
# check log contents and cleanup
sub check_pgbench_logs
{
local $Test::Builder::Level = $Test::Builder::Level + 1;
my ($prefix, $nb, $min, $max, $re) = @_;
my @logs = glob "$prefix.*";
......
......@@ -20,6 +20,8 @@ mkdir $testdir
# invoke pgbench
sub pgbench
{
local $Test::Builder::Level = $Test::Builder::Level + 1;
my ($opts, $stat, $out, $err, $name) = @_;
print STDERR "opts=$opts, stat=$stat, out=$out, err=$err, name=$name";
command_checks_all([ 'pgbench', split(/\s+/, $opts) ],
......@@ -30,6 +32,8 @@ sub pgbench
# invoke pgbench with scripts
sub pgbench_scripts
{
local $Test::Builder::Level = $Test::Builder::Level + 1;
my ($opts, $stat, $out, $err, $name, $files) = @_;
my @cmd = ('pgbench', split /\s+/, $opts);
my @filenames = ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment