Prevent 006_transfer_modes.pl from leaving files behind.
authorNathan Bossart <nathan@postgresql.org>
Tue, 8 Apr 2025 15:57:31 +0000 (10:57 -0500)
committerNathan Bossart <nathan@postgresql.org>
Tue, 8 Apr 2025 15:57:31 +0000 (10:57 -0500)
commitb0a4c3e88b8b527679216dca5e2e9cbd49514e99
treeb2acd6c0a666872f8d89b41251eab9db2e519487
parent88edd661c881562869e8a02f135c897cdd55103f
Prevent 006_transfer_modes.pl from leaving files behind.

This test was leaving files like delete_old_cluster.{sh,bat} in the
source directory for VPATH and meson builds.  To fix, change the
directory to tmp_check before running the test, as was done in
commits 15b6d215538af917be6b, and c462b054ba.

Oversight in commit af0d4901c1.

Reported-by: Andrew Dunstan <andrew@dunslane.net> (on Discord)
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Reviewed-by: Andrew Dunstan <andrew@dunslane.net>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/Z_RHkG770w3SE0yU%40nathan
src/bin/pg_upgrade/t/006_transfer_modes.pl