[postgis-tickets] [SCM] PostGIS branch main updated. 3.1.0rc1-386-g876e74c

git at osgeo.org git at osgeo.org
Mon Aug 2 13:17:30 PDT 2021


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, main has been updated
       via  876e74cd8617cd75b79b2708867fcc70ffa75b01 (commit)
      from  9ce11f2f4547c215285296389342e5530208ffc6 (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 876e74cd8617cd75b79b2708867fcc70ffa75b01
Author: Sandro Santilli <strk at kbt.io>
Date:   Mon Aug 2 22:17:13 2021 +0200

    Make multiprocess population less random

diff --git a/topology/test/check_multiprocess_topology_population.sh b/topology/test/check_multiprocess_topology_population.sh
index 92b410c..7a93f1f 100755
--- a/topology/test/check_multiprocess_topology_population.sh
+++ b/topology/test/check_multiprocess_topology_population.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 # TODO: turn to perl ?
 
@@ -15,10 +15,9 @@ trap cleanup EXIT
 psql ${PSQL_OPTS} -c "SELECT NULL FROM CreateTopology('mt_topo')" > /dev/null
 
 # $RANDOM: random integer between 0 and 32767
-for i in `seq 1 10`; do
-  x=${RANDOM} # requires bash
-  y=${RANDOM}
-  cat <<EOF | psql ${PSQL_OPTS} | grep -v '^$' &
+for x in `seq 1 4`; do
+  for y in `seq 1 4`; do
+    cat <<EOF | psql ${PSQL_OPTS} | grep -v '^$' &
 SELECT NULL FROM
   topology.TopoGeo_addPolygon(
     'mt_topo',
@@ -31,14 +30,16 @@ SELECT NULL FROM
     )
   )
 EOF
-  pids[${i}]=$!
+    echo $! >> pids.$$
+  done
 done
 
 # wait for all pids
-for pid in ${pids[*]}; do
+for pid in `cat pids.$$`; do
     wait $pid
 done
+rm -f pids.$$
 
 psql ${PSQL_OPTS} -c "SELECT TopologySummary('mt_topo')" | grep -v '^$'
-psql ${PSQL_OPTS} -c "SELECT * FROM ValidateTopology('mt_topo')" | grep -v '^$'
+psql ${PSQL_OPTS} -c "SELECT 'INVALIDITY', * FROM ValidateTopology('mt_topo')" | grep -v '^$'
 

-----------------------------------------------------------------------

Summary of changes:
 topology/test/check_multiprocess_topology_population.sh | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list