mirror of
https://github.com/postgres/postgres.git
synced 2025-07-23 03:21:12 +03:00
Split TESTDIR into TESTLOGDIR and TESTDATADIR
The motivation for this is twofold. For one the meson patchset would like to have more control over the logfiles. For another, the log file location for tap tests (tmp_check/log) is not symmetric to the log location for pg_regress/isolation tests (log/). This commit does not change the default location for log files for tap tests, as that'd break the buildfarm log collection, it just provides the infrastructure for doing so. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Reviewed-by: Peter Eisentraut <peter.eisentraut@enterprisedb.com> Reviewed-by: Justin Pryzby <pryzby@telsasoft.com> Discussion: https://postgr.es/m/1131990.1660661896@sss.pgh.pa.us Discussion: https://postgr.es/m/20220828170806.GN2342@telsasoft.com
This commit is contained in:
@ -189,11 +189,11 @@ INIT
|
||||
# test may still fail, but it's more likely to report useful facts.
|
||||
$SIG{PIPE} = 'IGNORE';
|
||||
|
||||
# Determine output directories, and create them. The base path is the
|
||||
# TESTDIR environment variable, which is normally set by the invoking
|
||||
# Makefile.
|
||||
$tmp_check = $ENV{TESTDIR} ? "$ENV{TESTDIR}" : "tmp_check";
|
||||
$log_path = "$tmp_check/log";
|
||||
# Determine output directories, and create them. The base paths are the
|
||||
# TESTDATADIR / TESTLOGDIR environment variables, which are normally set
|
||||
# by the invoking Makefile.
|
||||
$tmp_check = $ENV{TESTDATADIR} ? "$ENV{TESTDATADIR}" : "tmp_check";
|
||||
$log_path = $ENV{TESTLOGDIR} ? "$ENV{TESTLOGDIR}" : "log";
|
||||
|
||||
mkdir $tmp_check;
|
||||
mkdir $log_path;
|
||||
|
Reference in New Issue
Block a user