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; ...@@ -13,6 +13,8 @@ $node->start;
# invoke pgbench # invoke pgbench
sub pgbench sub pgbench
{ {
local $Test::Builder::Level = $Test::Builder::Level + 1;
my ($opts, $stat, $out, $err, $name, $files) = @_; my ($opts, $stat, $out, $err, $name, $files) = @_;
my @cmd = ('pgbench', split /\s+/, $opts); my @cmd = ('pgbench', split /\s+/, $opts);
my @filenames = (); my @filenames = ();
...@@ -798,6 +800,8 @@ pgbench( ...@@ -798,6 +800,8 @@ pgbench(
# check log contents and cleanup # check log contents and cleanup
sub check_pgbench_logs sub check_pgbench_logs
{ {
local $Test::Builder::Level = $Test::Builder::Level + 1;
my ($prefix, $nb, $min, $max, $re) = @_; my ($prefix, $nb, $min, $max, $re) = @_;
my @logs = glob "$prefix.*"; my @logs = glob "$prefix.*";
......
...@@ -20,6 +20,8 @@ mkdir $testdir ...@@ -20,6 +20,8 @@ mkdir $testdir
# invoke pgbench # invoke pgbench
sub pgbench sub pgbench
{ {
local $Test::Builder::Level = $Test::Builder::Level + 1;
my ($opts, $stat, $out, $err, $name) = @_; my ($opts, $stat, $out, $err, $name) = @_;
print STDERR "opts=$opts, stat=$stat, out=$out, err=$err, name=$name"; print STDERR "opts=$opts, stat=$stat, out=$out, err=$err, name=$name";
command_checks_all([ 'pgbench', split(/\s+/, $opts) ], command_checks_all([ 'pgbench', split(/\s+/, $opts) ],
...@@ -30,6 +32,8 @@ sub pgbench ...@@ -30,6 +32,8 @@ sub pgbench
# invoke pgbench with scripts # invoke pgbench with scripts
sub pgbench_scripts sub pgbench_scripts
{ {
local $Test::Builder::Level = $Test::Builder::Level + 1;
my ($opts, $stat, $out, $err, $name, $files) = @_; my ($opts, $stat, $out, $err, $name, $files) = @_;
my @cmd = ('pgbench', split /\s+/, $opts); my @cmd = ('pgbench', split /\s+/, $opts);
my @filenames = (); 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