Opened 2 years ago

Closed 2 years ago

#5190 closed defect (fixed)

run_test.pl confused about regress db existing

Reported by: strk Owned by: strk
Priority: medium Milestone: PostGIS 3.2.3
Component: build Version: 3.2.x
Keywords: Cc:

Description

Snippet from output of run_test.pl:

$ ../regress/run_test.pl -v --upgrade-path unpackaged3.2--:auto ../regress/core/tickets
[...]
Database postgis_reg already exists, dropping.
dropdb: error: database removal failed: ERROR:  database "postgis_reg" does not exist
[...]

I guess the "already exists" detection is broken.

Change History (2)

comment:1 by strk, 2 years ago

Figured: we are using regexp "\b${DB}\b" to find out if the database exists, which also matches "postgis_reg-3.3" when DB=postgis_reg

comment:2 by Sandro Santilli <strk@…>, 2 years ago

Resolution: fixed
Status: newclosed

In 9c39b9d9/git:

Fix database presence detection

Closes #5190

Note: See TracTickets for help on using tickets.