summaryrefslogtreecommitdiffstats
path: root/src/bin/pg_upgrade/t/002_pg_upgrade.pl
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/bin/pg_upgrade/t/002_pg_upgrade.pl14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/bin/pg_upgrade/t/002_pg_upgrade.pl b/src/bin/pg_upgrade/t/002_pg_upgrade.pl
index 6b0f42c..ceca3ac 100644
--- a/src/bin/pg_upgrade/t/002_pg_upgrade.pl
+++ b/src/bin/pg_upgrade/t/002_pg_upgrade.pl
@@ -221,7 +221,7 @@ if (defined($ENV{oldinstall}))
my $dump_data = slurp_file($dump1_file);
- my $newregresssrc = "$srcdir/src/test/regress";
+ my $newregresssrc = dirname($ENV{REGRESS_SHLIB});
foreach (@libpaths)
{
my $libpath = $_;
@@ -364,15 +364,9 @@ push(@dump_command, '--extra-float-digits', '0')
if ($oldnode->pg_version < 12);
$newnode->command_ok(\@dump_command, 'dump after running pg_upgrade');
-# No need to apply filters on the dumps if working on the same version
-# for the old and new nodes.
-my $dump1_filtered = $dump1_file;
-my $dump2_filtered = $dump2_file;
-if ($oldnode->pg_version != $newnode->pg_version)
-{
- $dump1_filtered = filter_dump(1, $oldnode->pg_version, $dump1_file);
- $dump2_filtered = filter_dump(0, $oldnode->pg_version, $dump2_file);
-}
+# Filter the contents of the dumps.
+my $dump1_filtered = filter_dump(1, $oldnode->pg_version, $dump1_file);
+my $dump2_filtered = filter_dump(0, $oldnode->pg_version, $dump2_file);
# Compare the two dumps, there should be no differences.
my $compare_res = compare($dump1_filtered, $dump2_filtered);