Avoid creating testtablespace directories where not wanted.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 19 May 2021 18:04:01 +0000 (14:04 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 19 May 2021 18:04:01 +0000 (14:04 -0400)
commit413c1ef98e0c9c708c4a9a13a838a55b65b16a80
tree3e2677e1157a43896e5117b4f485d2739716999b
parent4f7d1c30966cc02fd5eba2f0d51d1f53be07d457
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
src/test/regress/GNUmakefile
src/test/regress/pg_regress.c
src/tools/msvc/vcregress.pl