pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Ignore more environment variables in TAP tests
12+ messages / 1 participants
[nested] [flat]

* pgsql: Ignore more environment variables in TAP tests
@ 2021-06-03 02:52  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 12+ messages in thread

From: Michael Paquier @ 2021-06-03 02:52 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Ignore more environment variables in TAP tests

Various environment variables were not getting reset in the TAP tests,
which would cause failures depending on the tests or the environment
variables involved.  For example, PGSSL{MAX,MIN}PROTOCOLVERSION could
cause failures in the SSL tests.  Even worse, a junk value of
PGCLIENTENCODING makes a server startup fail.  The list of variables
reset is adjusted in each stable branch depending on what is supported.

While on it, simplify a bit the code per a suggestion from Andrew
Dunstan, using a list of variables instead of doing single deletions.

Reviewed-by: Andrew Dunstan, Daniel Gustafsson
Discussion: https://postgr.es/m/YLbjjRpucIeZ78VQ@paquier.xyz
Backpatch-through: 9.6

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8279f68a1b13d58a0c9869a60081009d8995e4df

Modified Files
--------------
src/test/perl/TestLib.pm | 43 ++++++++++++++++++++++++++++++++-----------
1 file changed, 32 insertions(+), 11 deletions(-)



^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* pgsql: Ignore more environment variables in TAP tests
@ 2021-06-03 02:52  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 12+ messages in thread

From: Michael Paquier @ 2021-06-03 02:52 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Ignore more environment variables in TAP tests

Various environment variables were not getting reset in the TAP tests,
which would cause failures depending on the tests or the environment
variables involved.  For example, PGSSL{MAX,MIN}PROTOCOLVERSION could
cause failures in the SSL tests.  Even worse, a junk value of
PGCLIENTENCODING makes a server startup fail.  The list of variables
reset is adjusted in each stable branch depending on what is supported.

While on it, simplify a bit the code per a suggestion from Andrew
Dunstan, using a list of variables instead of doing single deletions.

Reviewed-by: Andrew Dunstan, Daniel Gustafsson
Discussion: https://postgr.es/m/YLbjjRpucIeZ78VQ@paquier.xyz
Backpatch-through: 9.6

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/9d660670541ccc803e1d48576b4a6d02a19321b0

Modified Files
--------------
src/test/perl/TestLib.pm | 42 +++++++++++++++++++++++++++++++-----------
1 file changed, 31 insertions(+), 11 deletions(-)



^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* pgsql: Ignore more environment variables in TAP tests
@ 2021-06-03 02:52  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 12+ messages in thread

From: Michael Paquier @ 2021-06-03 02:52 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Ignore more environment variables in TAP tests

Various environment variables were not getting reset in the TAP tests,
which would cause failures depending on the tests or the environment
variables involved.  For example, PGSSL{MAX,MIN}PROTOCOLVERSION could
cause failures in the SSL tests.  Even worse, a junk value of
PGCLIENTENCODING makes a server startup fail.  The list of variables
reset is adjusted in each stable branch depending on what is supported.

While on it, simplify a bit the code per a suggestion from Andrew
Dunstan, using a list of variables instead of doing single deletions.

Reviewed-by: Andrew Dunstan, Daniel Gustafsson
Discussion: https://postgr.es/m/YLbjjRpucIeZ78VQ@paquier.xyz
Backpatch-through: 9.6

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/ebd542bf4fd3dc8e9f2c8f145b57eccfd498a003

Modified Files
--------------
src/test/perl/TestLib.pm | 39 ++++++++++++++++++++++++++++-----------
1 file changed, 28 insertions(+), 11 deletions(-)



^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* pgsql: Ignore more environment variables in TAP tests
@ 2021-06-03 02:52  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 12+ messages in thread

From: Michael Paquier @ 2021-06-03 02:52 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Ignore more environment variables in TAP tests

Various environment variables were not getting reset in the TAP tests,
which would cause failures depending on the tests or the environment
variables involved.  For example, PGSSL{MAX,MIN}PROTOCOLVERSION could
cause failures in the SSL tests.  Even worse, a junk value of
PGCLIENTENCODING makes a server startup fail.  The list of variables
reset is adjusted in each stable branch depending on what is supported.

While on it, simplify a bit the code per a suggestion from Andrew
Dunstan, using a list of variables instead of doing single deletions.

Reviewed-by: Andrew Dunstan, Daniel Gustafsson
Discussion: https://postgr.es/m/YLbjjRpucIeZ78VQ@paquier.xyz
Backpatch-through: 9.6

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/36ac9f6af23039b334729b44a1751f1207f83f0e

Modified Files
--------------
src/test/perl/TestLib.pm | 36 ++++++++++++++++++++++++++----------
1 file changed, 26 insertions(+), 10 deletions(-)



^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* pgsql: Ignore more environment variables in TAP tests
@ 2021-06-03 02:52  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 12+ messages in thread

From: Michael Paquier @ 2021-06-03 02:52 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Ignore more environment variables in TAP tests

Various environment variables were not getting reset in the TAP tests,
which would cause failures depending on the tests or the environment
variables involved.  For example, PGSSL{MAX,MIN}PROTOCOLVERSION could
cause failures in the SSL tests.  Even worse, a junk value of
PGCLIENTENCODING makes a server startup fail.  The list of variables
reset is adjusted in each stable branch depending on what is supported.

While on it, simplify a bit the code per a suggestion from Andrew
Dunstan, using a list of variables instead of doing single deletions.

Reviewed-by: Andrew Dunstan, Daniel Gustafsson
Discussion: https://postgr.es/m/YLbjjRpucIeZ78VQ@paquier.xyz
Backpatch-through: 9.6

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/c63bb6950735103fa6528081014955d065c8ab64

Modified Files
--------------
src/test/perl/TestLib.pm | 36 ++++++++++++++++++++++++++----------
1 file changed, 26 insertions(+), 10 deletions(-)



^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* pgsql: Ignore more environment variables in TAP tests
@ 2021-06-03 02:52  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 12+ messages in thread

From: Michael Paquier @ 2021-06-03 02:52 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Ignore more environment variables in TAP tests

Various environment variables were not getting reset in the TAP tests,
which would cause failures depending on the tests or the environment
variables involved.  For example, PGSSL{MAX,MIN}PROTOCOLVERSION could
cause failures in the SSL tests.  Even worse, a junk value of
PGCLIENTENCODING makes a server startup fail.  The list of variables
reset is adjusted in each stable branch depending on what is supported.

While on it, simplify a bit the code per a suggestion from Andrew
Dunstan, using a list of variables instead of doing single deletions.

Reviewed-by: Andrew Dunstan, Daniel Gustafsson
Discussion: https://postgr.es/m/YLbjjRpucIeZ78VQ@paquier.xyz
Backpatch-through: 9.6

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/a886e2ff2413ee6420b84077f6cb991a5d97b45b

Modified Files
--------------
src/test/perl/TestLib.pm | 35 +++++++++++++++++++++++++----------
1 file changed, 25 insertions(+), 10 deletions(-)



^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* pgsql: Ignore more environment variables in pg_regress.c
@ 2021-06-13 11:09  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 12+ messages in thread

From: Michael Paquier @ 2021-06-13 11:09 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Ignore more environment variables in pg_regress.c

This is similar to the work done in 8279f68 for TestLib.pm, where
environment variables set may cause unwanted failures if using a
temporary installation with pg_regress.  The list of variables reset is
adjusted in each stable branch depending on what is supported.

Comments are added to remember that the lists in TestLib.pm and
pg_regress.c had better be kept in sync.

Reviewed-by: Álvaro Herrera
Discussion: https://postgr.es/m/YMNR9GYDn+fHlMta@paquier.xyz
Backpatch-through: 9.6

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a9e0b3b08fe38d5e31f03ea96859ff5e413d4a38

Modified Files
--------------
src/test/perl/TestLib.pm      |  1 +
src/test/regress/pg_regress.c | 32 ++++++++++++++++++++++++++++----
2 files changed, 29 insertions(+), 4 deletions(-)



^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* pgsql: Ignore more environment variables in pg_regress.c
@ 2021-06-13 11:09  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 12+ messages in thread

From: Michael Paquier @ 2021-06-13 11:09 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Ignore more environment variables in pg_regress.c

This is similar to the work done in 8279f68 for TestLib.pm, where
environment variables set may cause unwanted failures if using a
temporary installation with pg_regress.  The list of variables reset is
adjusted in each stable branch depending on what is supported.

Comments are added to remember that the lists in TestLib.pm and
pg_regress.c had better be kept in sync.

Reviewed-by: Álvaro Herrera
Discussion: https://postgr.es/m/YMNR9GYDn+fHlMta@paquier.xyz
Backpatch-through: 9.6

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/545aa6a59357f7fb8e341a6a5b4c85e322e78697

Modified Files
--------------
src/test/perl/TestLib.pm      |  1 +
src/test/regress/pg_regress.c | 30 ++++++++++++++++++++++++++----
2 files changed, 27 insertions(+), 4 deletions(-)



^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* pgsql: Ignore more environment variables in pg_regress.c
@ 2021-06-13 11:09  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 12+ messages in thread

From: Michael Paquier @ 2021-06-13 11:09 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Ignore more environment variables in pg_regress.c

This is similar to the work done in 8279f68 for TestLib.pm, where
environment variables set may cause unwanted failures if using a
temporary installation with pg_regress.  The list of variables reset is
adjusted in each stable branch depending on what is supported.

Comments are added to remember that the lists in TestLib.pm and
pg_regress.c had better be kept in sync.

Reviewed-by: Álvaro Herrera
Discussion: https://postgr.es/m/YMNR9GYDn+fHlMta@paquier.xyz
Backpatch-through: 9.6

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/37d4edef00e40085f31bfd578b07c5e319e9818a

Modified Files
--------------
src/test/perl/TestLib.pm      |  1 +
src/test/regress/pg_regress.c | 27 +++++++++++++++++++++++----
2 files changed, 24 insertions(+), 4 deletions(-)



^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* pgsql: Ignore more environment variables in pg_regress.c
@ 2021-06-13 11:09  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 12+ messages in thread

From: Michael Paquier @ 2021-06-13 11:09 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Ignore more environment variables in pg_regress.c

This is similar to the work done in 8279f68 for TestLib.pm, where
environment variables set may cause unwanted failures if using a
temporary installation with pg_regress.  The list of variables reset is
adjusted in each stable branch depending on what is supported.

Comments are added to remember that the lists in TestLib.pm and
pg_regress.c had better be kept in sync.

Reviewed-by: Álvaro Herrera
Discussion: https://postgr.es/m/YMNR9GYDn+fHlMta@paquier.xyz
Backpatch-through: 9.6

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/15cb0bf4714566721185fdea32d4dd5f8f706aa2

Modified Files
--------------
src/test/perl/TestLib.pm      |  1 +
src/test/regress/pg_regress.c | 26 ++++++++++++++++++++++----
2 files changed, 23 insertions(+), 4 deletions(-)



^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* pgsql: Ignore more environment variables in pg_regress.c
@ 2021-06-13 11:09  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 12+ messages in thread

From: Michael Paquier @ 2021-06-13 11:09 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Ignore more environment variables in pg_regress.c

This is similar to the work done in 8279f68 for TestLib.pm, where
environment variables set may cause unwanted failures if using a
temporary installation with pg_regress.  The list of variables reset is
adjusted in each stable branch depending on what is supported.

Comments are added to remember that the lists in TestLib.pm and
pg_regress.c had better be kept in sync.

Reviewed-by: Álvaro Herrera
Discussion: https://postgr.es/m/YMNR9GYDn+fHlMta@paquier.xyz
Backpatch-through: 9.6

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/d31c316c74ee3cf2942cb91c2fe91fb6749730c7

Modified Files
--------------
src/test/perl/TestLib.pm      |  1 +
src/test/regress/pg_regress.c | 26 ++++++++++++++++++++++----
2 files changed, 23 insertions(+), 4 deletions(-)



^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* pgsql: Ignore more environment variables in pg_regress.c
@ 2021-06-13 11:09  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 12+ messages in thread

From: Michael Paquier @ 2021-06-13 11:09 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Ignore more environment variables in pg_regress.c

This is similar to the work done in 8279f68 for TestLib.pm, where
environment variables set may cause unwanted failures if using a
temporary installation with pg_regress.  The list of variables reset is
adjusted in each stable branch depending on what is supported.

Comments are added to remember that the lists in TestLib.pm and
pg_regress.c had better be kept in sync.

Reviewed-by: Álvaro Herrera
Discussion: https://postgr.es/m/YMNR9GYDn+fHlMta@paquier.xyz
Backpatch-through: 9.6

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/1df6bee296ed2be0fda11ee7aa42853cf0469f8d

Modified Files
--------------
src/test/perl/TestLib.pm      |  1 +
src/test/regress/pg_regress.c | 25 +++++++++++++++++++++----
2 files changed, 22 insertions(+), 4 deletions(-)



^ permalink  raw  reply  [nested|flat] 12+ messages in thread


end of thread, other threads:[~2021-06-13 11:09 UTC | newest]

Thread overview: 12+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-06-03 02:52 pgsql: Ignore more environment variables in TAP tests Michael Paquier <michael@paquier.xyz>
2021-06-03 02:52 pgsql: Ignore more environment variables in TAP tests Michael Paquier <michael@paquier.xyz>
2021-06-03 02:52 pgsql: Ignore more environment variables in TAP tests Michael Paquier <michael@paquier.xyz>
2021-06-03 02:52 pgsql: Ignore more environment variables in TAP tests Michael Paquier <michael@paquier.xyz>
2021-06-03 02:52 pgsql: Ignore more environment variables in TAP tests Michael Paquier <michael@paquier.xyz>
2021-06-03 02:52 pgsql: Ignore more environment variables in TAP tests Michael Paquier <michael@paquier.xyz>
2021-06-13 11:09 pgsql: Ignore more environment variables in pg_regress.c Michael Paquier <michael@paquier.xyz>
2021-06-13 11:09 pgsql: Ignore more environment variables in pg_regress.c Michael Paquier <michael@paquier.xyz>
2021-06-13 11:09 pgsql: Ignore more environment variables in pg_regress.c Michael Paquier <michael@paquier.xyz>
2021-06-13 11:09 pgsql: Ignore more environment variables in pg_regress.c Michael Paquier <michael@paquier.xyz>
2021-06-13 11:09 pgsql: Ignore more environment variables in pg_regress.c Michael Paquier <michael@paquier.xyz>
2021-06-13 11:09 pgsql: Ignore more environment variables in pg_regress.c Michael Paquier <michael@paquier.xyz>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox