mirror of
https://github.com/postgres/postgres.git
synced 2025-06-23 14:01:44 +03:00
pg_basebackup: Add tests for -R option
Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
This commit is contained in:
@ -11,6 +11,7 @@ our @EXPORT = qw(
|
||||
start_test_server
|
||||
restart_test_server
|
||||
psql
|
||||
slurp_file
|
||||
system_or_bail
|
||||
system_log
|
||||
run_log
|
||||
@ -175,6 +176,13 @@ sub psql
|
||||
run [ 'psql', '-X', '-q', '-d', $dbname, '-f', '-' ], '<', \$sql or die;
|
||||
}
|
||||
|
||||
sub slurp_file
|
||||
{
|
||||
local $/;
|
||||
local @ARGV = @_;
|
||||
<>
|
||||
}
|
||||
|
||||
sub system_or_bail
|
||||
{
|
||||
if (system_log(@_) != 0)
|
||||
|
Reference in New Issue
Block a user