pg_validatebackup: Also use perl2host in TAP tests.

Second try at getting the buildfarm to be happy with 003_corrution.pl
as added by commit 0d8c9c1210.

Per suggestion from Álvaro Herrera.

Discussion: http://postgr.es/m/20200403205412.GA8279@alvherre.pgsql
This commit is contained in:
Robert Haas 2020-04-03 17:16:31 -04:00
parent 0568e7a2a4
commit 460314db08
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ $master->start;
# Include a user-defined tablespace in the hopes of detecting problems in that
# area.
my $source_ts_path = TestLib::tempdir_short;
my $source_ts_path = TestLib::perl2host(TestLib::tempdir_short());
$master->safe_psql('postgres', <<EOM);
CREATE TABLE x1 (a int);
INSERT INTO x1 VALUES (111);
@ -103,7 +103,7 @@ for my $scenario (@scenario)
# Take a backup and check that it validates OK.
my $backup_path = $master->backup_dir . '/' . $name;
my $backup_ts_path = TestLib::tempdir_short;
my $backup_ts_path = TestLib::perl2host(TestLib::tempdir_short());
$master->command_ok(['pg_basebackup', '-D', $backup_path, '--no-sync',
'-T', "${source_ts_path}=${backup_ts_path}"],
"base backup ok");