mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-31 00:03:57 -04:00 
			
		
		
		
	Add $Test::Builder::Level to pgbench test functions
same as c4309f4aeeae54e4c5281d68e29288af1d0d1ed2
This commit is contained in:
		
							parent
							
								
									6837078687
								
							
						
					
					
						commit
						2c059c86ba
					
				| @ -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 = (); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user