diff options
author | Michael Paquier | 2025-03-17 03:42:23 +0000 |
---|---|---|
committer | Michael Paquier | 2025-03-17 03:42:23 +0000 |
commit | 19c6e92b13b2336d1db1b236457ab15d0894b506 (patch) | |
tree | 672b72d1e75f47fbbe28db3326267804c6af6dcf /src/interfaces/libpq/t | |
parent | 5721e5453ebc59360b6756fe72d7499c4a02177c (diff) |
Apply more consistent style for command options in TAP tests
This commit reshapes the grammar of some commands to apply a more
consistent style across the board, following rules similar to
ce1b0f9da03e:
- Elimination of some pointless used-once variables.
- Use of long options, to self-document better the options used.
- Use of fat commas to link option names and their assigned values,
including redirections, so as perltidy can be tricked to put them
together.
Author: Dagfinn Ilmari Mannsåker <[email protected]>
Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/interfaces/libpq/t')
-rw-r--r-- | src/interfaces/libpq/t/001_uri.pl | 5 | ||||
-rw-r--r-- | src/interfaces/libpq/t/005_negotiate_encryption.pl | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/interfaces/libpq/t/001_uri.pl b/src/interfaces/libpq/t/001_uri.pl index ee4944ed18f..b0edcb3be88 100644 --- a/src/interfaces/libpq/t/001_uri.pl +++ b/src/interfaces/libpq/t/001_uri.pl @@ -268,8 +268,9 @@ sub test_uri %ENV = (%ENV, %envvars); my $cmd = [ 'libpq_uri_regress', $uri ]; - $result{exit} = IPC::Run::run $cmd, '>', \$result{stdout}, '2>', - \$result{stderr}; + $result{exit} = IPC::Run::run $cmd, + '>' => \$result{stdout}, + '2>' => \$result{stderr}; chomp($result{stdout}); chomp($result{stderr}); diff --git a/src/interfaces/libpq/t/005_negotiate_encryption.pl b/src/interfaces/libpq/t/005_negotiate_encryption.pl index c834fa5149a..f6a453c1b41 100644 --- a/src/interfaces/libpq/t/005_negotiate_encryption.pl +++ b/src/interfaces/libpq/t/005_negotiate_encryption.pl @@ -673,7 +673,9 @@ sub connect_test my ($ret, $stdout, $stderr) = $node->psql( 'postgres', '', - extra_params => [ '-w', '-c', 'SELECT current_enc()' ], + extra_params => [ + '--no-password', '--command' => 'SELECT current_enc()', + ], connstr => "$connstr_full", on_error_stop => 0); |