[GRASS-SVN] r73731 - in grass/branches/releasebranch_7_6: raster/r.mapcalc/testsuite testsuite/raster

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Nov 30 03:51:58 PST 2018


Author: neteler
Date: 2018-11-30 03:51:58 -0800 (Fri, 30 Nov 2018)
New Revision: 73731

Modified:
   grass/branches/releasebranch_7_6/raster/r.mapcalc/testsuite/const_map_test.sh
   grass/branches/releasebranch_7_6/testsuite/raster/raster_md5test.sh
Log:
tests: don't use LOCATION to mean full path to mapset (see #2681)


Modified: grass/branches/releasebranch_7_6/raster/r.mapcalc/testsuite/const_map_test.sh
===================================================================
--- grass/branches/releasebranch_7_6/raster/r.mapcalc/testsuite/const_map_test.sh	2018-11-30 11:50:23 UTC (rev 73730)
+++ grass/branches/releasebranch_7_6/raster/r.mapcalc/testsuite/const_map_test.sh	2018-11-30 11:51:58 UTC (rev 73731)
@@ -29,7 +29,7 @@
 
 eval `g.gisenv`
 : ${GISBASE?} ${GISDBASE?} ${LOCATION_NAME?} ${MAPSET?}
-LOCATION=$GISDBASE/$LOCATION_NAME/$MAPSET
+MAPSET_PATH=$GISDBASE/$LOCATION_NAME/$MAPSET
 
 # some definitions
 PIXEL=3
@@ -49,7 +49,7 @@
 # check if a MASK is already present:
 MASKTMP=mask.$TMPNAME
 USERMASK=usermask_${MASKTMP}
-if test -f $LOCATION/cell/MASK
+if test -f $MAPSET_PATH/cell/MASK
 then
  echo "A user raster mask (MASK) is present. Saving it..."
  g.rename raster=MASK,$USERMASK > /dev/null
@@ -61,7 +61,7 @@
  g.region region=$TMPNAME
  g.remove -f type=region name=$TMPNAME > /dev/null
  #restore user mask if present:
- if test -f $LOCATION/cell/$USERMASK ; then
+ if test -f $MAPSET_PATH/cell/$USERMASK ; then
   echo "Restoring user MASK"
   g.remove -f type=raster name=MASK > /dev/null
   g.rename raster=$USERMASK,MASK > /dev/null
@@ -109,7 +109,7 @@
 #check if a MASK is already present:
 MASKTMP=mask.$TMPNAME
 USERMASK=usermask_${MASKTMP}
-if test -f $LOCATION/cell/MASK
+if test -f $MAPSET_PATH/cell/MASK
 then
  echo "A user raster mask (MASK) is present. Saving it..."
  g.rename raster=MASK,$USERMASK > /dev/null

Modified: grass/branches/releasebranch_7_6/testsuite/raster/raster_md5test.sh
===================================================================
--- grass/branches/releasebranch_7_6/testsuite/raster/raster_md5test.sh	2018-11-30 11:50:23 UTC (rev 73730)
+++ grass/branches/releasebranch_7_6/testsuite/raster/raster_md5test.sh	2018-11-30 11:51:58 UTC (rev 73731)
@@ -37,7 +37,7 @@
 
 eval `g.gisenv`
 : ${GISBASE?} ${GISDBASE?} ${LOCATION_NAME?} ${MAPSET?}
-LOCATION=$GISDBASE/$LOCATION_NAME/$MAPSET
+MAPSET_PATH=$GISDBASE/$LOCATION_NAME/$MAPSET
 
 # some definitions
 PIXEL=3
@@ -54,7 +54,7 @@
 # check if a MASK is already present:
 MASKTMP=mask.$TMPNAME
 USERMASK=usermask_${MASKTMP}
-if test -f $LOCATION/cell/MASK
+if test -f $MAPSET_PATH/cell/MASK
 then
  echo "A user raster mask (MASK) is present. Saving it..."
  g.rename raster=MASK,$USERMASK > /dev/null
@@ -66,7 +66,7 @@
  g.region region=$TMPNAME
  g.remove -f type=region name=$TMPNAME > /dev/null
  #restore user mask if present:
- if test -f $LOCATION/cell/$USERMASK ; then
+ if test -f $MAPSET_PATH/cell/$USERMASK ; then
   echo "Restoring user MASK"
   g.remove -f type=raster name=MASK > /dev/null
   g.rename raster=$USERMASK,MASK > /dev/null



More information about the grass-commit mailing list