pg_validatebackup: Use tempdir_short in TAP tests.
The buildfarm is very unhappy right now because TAP test 003_corruption.pl uses TestLib::tempdir to generate the name of a temporary directory that is used as a tablespace name, and this results in a 'symbolic link target too long' error message on many of the buildfarm machines, but not on my machine. It appears that other people have run into similar problems in the past and that TestLib::tempdir_short was the solution, so let's try using that instead.
This commit is contained in:
parent
87e3004340
commit
21dc48840c
@ -15,7 +15,7 @@ $master->start;
|
|||||||
|
|
||||||
# Include a user-defined tablespace in the hopes of detecting problems in that
|
# Include a user-defined tablespace in the hopes of detecting problems in that
|
||||||
# area.
|
# area.
|
||||||
my $source_ts_path = TestLib::tempdir;
|
my $source_ts_path = TestLib::tempdir_short;
|
||||||
$master->safe_psql('postgres', <<EOM);
|
$master->safe_psql('postgres', <<EOM);
|
||||||
CREATE TABLE x1 (a int);
|
CREATE TABLE x1 (a int);
|
||||||
INSERT INTO x1 VALUES (111);
|
INSERT INTO x1 VALUES (111);
|
||||||
@ -103,7 +103,7 @@ for my $scenario (@scenario)
|
|||||||
|
|
||||||
# Take a backup and check that it validates OK.
|
# Take a backup and check that it validates OK.
|
||||||
my $backup_path = $master->backup_dir . '/' . $name;
|
my $backup_path = $master->backup_dir . '/' . $name;
|
||||||
my $backup_ts_path = TestLib::tempdir;
|
my $backup_ts_path = TestLib::tempdir_short;
|
||||||
$master->command_ok(['pg_basebackup', '-D', $backup_path, '--no-sync',
|
$master->command_ok(['pg_basebackup', '-D', $backup_path, '--no-sync',
|
||||||
'-T', "${source_ts_path}=${backup_ts_path}"],
|
'-T', "${source_ts_path}=${backup_ts_path}"],
|
||||||
"base backup ok");
|
"base backup ok");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user