mirror of
https://github.com/postgres/postgres.git
synced 2025-05-21 15:54:08 +03:00
(Blind) fix Perl splitting of strings at newlines
I forgot that Windows represents newlines as \r\n, so splitting a string at /\s/ creates additional empty strings. Let's rewrite that as /\s+/ to see if that avoids those. (There's precedent for using that pattern on Windows in other scripts.) Previously: 91bdf499b37b, 8ed428dc977f, 650b96707672. Per buildfarm, via Tom Lane. Discussion: https://postgr.es/m/3144460.1615860259@sss.pgh.pa.us
This commit is contained in:
parent
15639d5e8f
commit
015061690c
@ -16,7 +16,7 @@ $ENV{PATH} = "$ENV{PATH}:" . getcwd();
|
||||
|
||||
my ($out, $err) = run_command(['libpq_pipeline', 'tests']);
|
||||
die "oops: $err" unless $err eq '';
|
||||
my @tests = split(/\s/, $out);
|
||||
my @tests = split(/\s+/, $out);
|
||||
|
||||
for my $testname (@tests)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user