mirror of
https://github.com/postgres/postgres.git
synced 2025-06-16 06:01:02 +03:00
Fix TAP installcheck tests when current directory name contains spaces
This fixes the installcheck part. The check part has additional problems that will be addressed in a separate commit.
This commit is contained in:
@ -88,7 +88,7 @@ sub start_test_server
|
||||
|
||||
my $tempdir_short = tempdir_short;
|
||||
|
||||
system "initdb -D $tempdir/pgdata -A trust -N >/dev/null";
|
||||
system "initdb -D '$tempdir'/pgdata -A trust -N >/dev/null";
|
||||
$ret = system 'pg_ctl', '-D', "$tempdir/pgdata", '-s', '-w', '-l',
|
||||
"$tempdir/logfile", '-o',
|
||||
"--fsync=off -k $tempdir_short --listen-addresses='' --log-statement=all",
|
||||
@ -223,7 +223,7 @@ sub issues_sql_like
|
||||
truncate $test_server_logfile, 0;
|
||||
my $result = run $cmd, '>', \$stdout, '2>', \$stderr;
|
||||
ok($result, "@$cmd exit code 0");
|
||||
my $log = `cat $test_server_logfile`;
|
||||
my $log = `cat '$test_server_logfile'`;
|
||||
like($log, $expected_sql, "$test_name: SQL found in server log");
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user