[postgis-tickets] [SCM] PostGIS branch proper-upgrade-tests updated. 3.2.0-256-g372adaf0c
git at osgeo.org
git at osgeo.org
Sun Jan 16 13:15:32 PST 2022
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".
The branch, proper-upgrade-tests has been updated
via 372adaf0c423e6ffa1f3ccd7847a85afabb91907 (commit)
from 0b2a78d8b89fe87d7f817882fb903fba81721a80 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 372adaf0c423e6ffa1f3ccd7847a85afabb91907
Author: Sandro Santilli <strk at kbt.io>
Date: Sun Jan 16 22:15:08 2022 +0100
run_test.pl: fail immediately if upgrade of any component fails
diff --git a/regress/run_test.pl b/regress/run_test.pl
index 5322e5e95..9810a81d7 100755
--- a/regress/run_test.pl
+++ b/regress/run_test.pl
@@ -1538,62 +1538,29 @@ sub upgrade_spatial
{
print "Upgrading PostGIS in '${DB}' \n" ;
- my $script = `ls ${STAGED_SCRIPTS_DIR}/postgis_upgrade.sql`;
- chomp($script);
-
- if ( -e $script )
- {
- print "Upgrading core\n";
- load_sql_file($script);
- }
- else
- {
- die "$script not found\n";
- }
+ my $script = "${STAGED_SCRIPTS_DIR}/postgis_upgrade.sql";
+ print "Upgrading core\n";
+ die unless load_sql_file($script, 1);
if ( $OPT_WITH_TOPO )
{
- my $script = `ls ${STAGED_SCRIPTS_DIR}/topology_upgrade.sql`;
- chomp($script);
- if ( -e $script )
- {
- print "Upgrading topology\n";
- load_sql_file($script);
- }
- else
- {
- die "$script not found\n";
- }
+ $script = "${STAGED_SCRIPTS_DIR}/topology_upgrade.sql";
+ print "Upgrading topology\n";
+ die unless load_sql_file($script, 1);
}
if ( $OPT_WITH_RASTER )
{
- my $script = `ls ${STAGED_SCRIPTS_DIR}/rtpostgis_upgrade.sql`;
- chomp($script);
- if ( -e $script )
- {
- print "Upgrading raster\n";
- load_sql_file($script);
- }
- else
- {
- die "$script not found\n";
- }
+ $script = "${STAGED_SCRIPTS_DIR}/rtpostgis_upgrade.sql";
+ print "Upgrading raster\n";
+ die unless load_sql_file($script, 1);
}
if ( $OPT_WITH_SFCGAL )
{
- my $script = `ls ${STAGED_SCRIPTS_DIR}/sfcgal_upgrade.sql`;
- chomp($script);
- if ( -e $script )
- {
- print "Upgrading sfcgal\n";
- load_sql_file($script);
- }
- else
- {
- die "$script not found\n";
- }
+ $script = "${STAGED_SCRIPTS_DIR}/sfcgal_upgrade.sql";
+ print "Upgrading sfcgal\n";
+ die unless load_sql_file($script, 1);
}
return 1;
-----------------------------------------------------------------------
Summary of changes:
regress/run_test.pl | 57 +++++++++++------------------------------------------
1 file changed, 12 insertions(+), 45 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list