Avoid creating testtablespace directories where not wanted.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 413c1ef98e0c9c708c4a9a13a838a55b65b16a80
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2021-05-19T18:04:01Z
Releases: 14.0
Avoid creating testtablespace directories where not wanted.

Recently we refactored things so that pg_regress makes the
"testtablespace" subdirectory used by the core regression tests,
instead of doing that in the makefiles.  That had the undesirable
side effect of making such a subdirectory in every directory that
has "input" or "output" test files.  Since these subdirectories
remain empty, git doesn't complain about them, but nonetheless
they're clutter.

To fix, invent an explicit --make-testtablespace-dir switch,
so that pg_regress only makes the subdirectory when explicitly
told to.

Discussion: https://postgr.es/m/2854388.1621284789@sss.pgh.pa.us

Files

PathChange+/−
src/test/regress/GNUmakefile modified +2 −1
src/test/regress/pg_regress.c modified +36 −17
src/tools/msvc/vcregress.pl modified +2 −0

Discussion