Skip to content

Commit d3c7498

Browse files
committed
Attempt to get plpython regression tests working again for MSVC builds.
This has probably been broken for quite a long time. Buildfarm member currawong's current results suggest that it's been broken since 9.1, so backpatch this to that branch. This only supports Python 2 - I will handle Python 3 separately, but this is a fairly simple fix.
1 parent bac05d6 commit d3c7498

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/tools/msvc/vcregress.pl

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,15 @@ sub plcheck
168168
{
169169
next unless -d "$pl/sql" && -d "$pl/expected";
170170
my $lang = $pl eq 'tcl' ? 'pltcl' : $pl;
171-
next unless -d "../../$Config/$lang";
172-
$lang = 'plpythonu' if $lang eq 'plpython';
171+
if ($lang eq 'plpython')
172+
{
173+
next unless -d "../../$Config/plpython2";
174+
$lang = 'plpythonu';
175+
}
176+
else
177+
{
178+
next unless -d "../../$Config/$lang";
179+
}
173180
my @lang_args = ("--load-extension=$lang");
174181
chdir $pl;
175182
my @tests = fetchTests();

0 commit comments

Comments
 (0)