Skip to content

Commit b0a4c3e

Browse files
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 15b6d21, 8af917b, and c462b05. Oversight in commit af0d490. 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
1 parent 88edd66 commit b0a4c3e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/bin/pg_upgrade/t/006_transfer_modes.pl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,11 @@ sub test_mode
102102
$new->clean_node();
103103
}
104104

105+
# Run pg_upgrade in tmp_check to avoid leaving files like
106+
# delete_old_cluster.{sh,bat} in the source directory for VPATH and meson
107+
# builds.
108+
chdir ${PostgreSQL::Test::Utils::tmp_check};
109+
105110
test_mode('--clone');
106111
test_mode('--copy');
107112
test_mode('--copy-file-range');

0 commit comments

Comments
 (0)