diff options
author | Michael Paquier | 2025-01-22 01:13:59 +0000 |
---|---|---|
committer | Michael Paquier | 2025-01-22 01:15:32 +0000 |
commit | be31ac25191b26a8a1db345a727545959654f4cb (patch) | |
tree | 49f8dbb89003bae9aa79fa3332b8511bf62d7dad /src/tools | |
parent | 4907ba304c346051a6535e67c043779755a78e84 (diff) |
Run perltidy
A follow-up patch will adjust the TAP tests to follow a more-structured
format for option lists in commands, that perltidy is able to cope
better with. Putting the tree first in a clean state makes the next
change a bit easier. v20230309 has been used.
Author: Dagfinn Ilmari Mannsåker
Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/tools')
-rwxr-xr-x | src/tools/add_commit_links.pl | 13 | ||||
-rw-r--r-- | src/tools/pg_bsd_indent/t/001_pg_bsd_indent.pl | 3 |
2 files changed, 9 insertions, 7 deletions
diff --git a/src/tools/add_commit_links.pl b/src/tools/add_commit_links.pl index 34c4d7ad898..710a6492032 100755 --- a/src/tools/add_commit_links.pl +++ b/src/tools/add_commit_links.pl @@ -62,8 +62,9 @@ sub process_file # skip over commit links because we will add them below next - if (!$in_comment && - m{^\s*<ulink url="&commit_baseurl;[[:xdigit:]]+">§</ulink>\s*$}); + if (!$in_comment + && m{^\s*<ulink url="&commit_baseurl;[[:xdigit:]]+">§</ulink>\s*$} + ); if ($in_comment && m/\[([[:xdigit:]]+)\]/) { @@ -73,10 +74,10 @@ sub process_file (!m/^Branch:/) && push(@hashes, $hash); # minor release item - m/^Branch:/ && - defined($major_version) && - m/_${major_version}_/ && - push(@hashes, $hash); + m/^Branch:/ + && defined($major_version) + && m/_${major_version}_/ + && push(@hashes, $hash); } if (!$in_comment && m{</para>}) diff --git a/src/tools/pg_bsd_indent/t/001_pg_bsd_indent.pl b/src/tools/pg_bsd_indent/t/001_pg_bsd_indent.pl index cbb5769d004..c329d7b06d4 100644 --- a/src/tools/pg_bsd_indent/t/001_pg_bsd_indent.pl +++ b/src/tools/pg_bsd_indent/t/001_pg_bsd_indent.pl @@ -49,7 +49,8 @@ while (my $test_src = glob("$src_dir/tests/*.0")) ], "pg_bsd_indent succeeds on $test"); # check result matches, adding any diff to $diffs_file - my $result = run_log([ 'diff', @diffopts, "$test_src.stdout", "$test.out" ], + my $result = + run_log([ 'diff', @diffopts, "$test_src.stdout", "$test.out" ], '>>', $diffs_file); ok($result, "pg_bsd_indent output matches for $test"); } |