mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
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 commits15b6d21553
,8af917be6b
, andc462b054ba
. Oversight in commitaf0d4901c1
. 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
This commit is contained in:
@ -102,6 +102,11 @@ sub test_mode
|
|||||||
$new->clean_node();
|
$new->clean_node();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Run pg_upgrade in tmp_check to avoid leaving files like
|
||||||
|
# delete_old_cluster.{sh,bat} in the source directory for VPATH and meson
|
||||||
|
# builds.
|
||||||
|
chdir ${PostgreSQL::Test::Utils::tmp_check};
|
||||||
|
|
||||||
test_mode('--clone');
|
test_mode('--clone');
|
||||||
test_mode('--copy');
|
test_mode('--copy');
|
||||||
test_mode('--copy-file-range');
|
test_mode('--copy-file-range');
|
||||||
|
Reference in New Issue
Block a user