test_r_slope_aspect

./raster/r.slope.aspect – test_r_slope_aspect

Test failed

Test filetest_r_slope_aspect
Testsuite./raster/r.slope.aspect
StatusFAILED
Return code1
Number of tests5
Successful tests1
Failed tests6
Percent successful20%
Test duration0:00:01.565325
Tested modulesr.slope.aspect

Supplementary files

Standard error output (stderr)

etc/python/grass/lib/gis.py:807: DeprecationWarning: classic int division
  ('__val', c_ulong * (1024 / (8 * sizeof(c_ulong)))),
/usr/lib/python2.7/xml/etree/ElementTree.py:1627: DeprecationWarning: This method of XMLParser is deprecated.  Define doctype() method on the TreeBuilder target.
  DeprecationWarning,
.FFEEEE
======================================================================
ERROR: setUpClass (__main__.TestSlopeAspectAgainstItself)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "raster/r.slope.aspect/testsuite/test_r_slope_aspect.py", line 112, in setUpClass
    call_module('g.region', raster='elevation')
  File "etc/python/grass/gunittest/gmodules.py", line 129, in call_module
    raise CalledModuleError(returncode, module, kwargs, errors)
CalledModuleError: Module run 1 g.region ended with error
Process ended with non-zero return code {'raster': 'elevation', 'stderr': -1, 'stdout': -1}. See the following errors:
ERROR: Raster map <elevation> not found


======================================================================
ERROR: test_aspect (__main__.TestSlopeAspectAgainstReference)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "raster/r.slope.aspect/testsuite/test_r_slope_aspect.py", line 102, in test_aspect
    precision=self.precision)
  File "etc/python/grass/gunittest/case.py", line 628, in assertRastersNoDifference
    call_module('g.remove', flags='f', type='rast', name=diff)
  File "etc/python/grass/gunittest/gmodules.py", line 129, in call_module
    raise CalledModuleError(returncode, module, kwargs, errors)
CalledModuleError: Module run 1 g.remove ended with error
Process ended with non-zero return code {'type': 'rast', 'flags': 'f', 'name': 'tmp___main__.TestSlopeAspectAgainstReference.test_aspect_compute_difference_raster_assertRastersNoDifference_reference_aspect_minus_fractal_aspect', 'stderr': -1, 'stdout': -1}. See the following errors:

Description:
 Removes data base element files from the user's current mapset using the search pattern.

Keywords:
 general, map management, remove

Usage:
 g.remove [-irefb] type=datatype[,datatype,...]
   [name=string[,string,...]] [ignore=string[,string,...]] [pattern=string]
   [exclude=string] [--help] [--verbose] [--quiet] [--ui]

Flags:
  -i   Ignore case
  -r   Use basic regular expressions instead of wildcards
  -e   Use extended regular expressions instead of wildcards
  -f   Force removal (required for actual deletion of files)
  -b   Remove base raster maps
 --h   Print usage summary
 --v   Verbose module output
 --q   Quiet module output
 --ui  Force launching GUI dialog

Parameters:
     type   Data type(s)
            options: raster,raster_3d,vector,old_vector,ascii_vector,labels,
                     region,group,all
             raster: raster map(s)
             raster_3d: 3D raster map(s)
             vector: vector map(s)
             old_vector: old  (GRASS 5.0) vector map(s)
             ascii_vector: ASCII vector map(s)
             labels: paint label file(s)
             region: region definition(s)
             group: imagery group(s)
             all: all types
     name   Name of file(s) to remove
   ignore   Name of file(s) to ignore (default: none)
  pattern   File name search pattern
  exclude   File name exclusion pattern (default: none)

ERROR: Value <rast> ambiguous for parameter <type>
	Valid options: raster,raster_3d,vector,old_vector,ascii_vector,labels,region,group,all


======================================================================
ERROR: test_slope (__main__.TestSlopeAspectAgainstReference)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "raster/r.slope.aspect/testsuite/test_r_slope_aspect.py", line 87, in test_slope
    precision=self.precision)
  File "etc/python/grass/gunittest/case.py", line 628, in assertRastersNoDifference
    call_module('g.remove', flags='f', type='rast', name=diff)
  File "etc/python/grass/gunittest/gmodules.py", line 129, in call_module
    raise CalledModuleError(returncode, module, kwargs, errors)
CalledModuleError: Module run 1 g.remove ended with error
Process ended with non-zero return code {'type': 'rast', 'flags': 'f', 'name': 'tmp___main__.TestSlopeAspectAgainstReference.test_slope_compute_difference_raster_assertRastersNoDifference_reference_slope_minus_fractal_slope', 'stderr': -1, 'stdout': -1}. See the following errors:

Description:
 Removes data base element files from the user's current mapset using the search pattern.

Keywords:
 general, map management, remove

Usage:
 g.remove [-irefb] type=datatype[,datatype,...]
   [name=string[,string,...]] [ignore=string[,string,...]] [pattern=string]
   [exclude=string] [--help] [--verbose] [--quiet] [--ui]

Flags:
  -i   Ignore case
  -r   Use basic regular expressions instead of wildcards
  -e   Use extended regular expressions instead of wildcards
  -f   Force removal (required for actual deletion of files)
  -b   Remove base raster maps
 --h   Print usage summary
 --v   Verbose module output
 --q   Quiet module output
 --ui  Force launching GUI dialog

Parameters:
     type   Data type(s)
            options: raster,raster_3d,vector,old_vector,ascii_vector,labels,
                     region,group,all
             raster: raster map(s)
             raster_3d: 3D raster map(s)
             vector: vector map(s)
             old_vector: old  (GRASS 5.0) vector map(s)
             ascii_vector: ASCII vector map(s)
             labels: paint label file(s)
             region: region definition(s)
             group: imagery group(s)
             all: all types
     name   Name of file(s) to remove
   ignore   Name of file(s) to ignore (default: none)
  pattern   File name search pattern
  exclude   File name exclusion pattern (default: none)

ERROR: Value <rast> ambiguous for parameter <type>
	Valid options: raster,raster_3d,vector,old_vector,ascii_vector,labels,region,group,all


======================================================================
ERROR: tearDownClass (__main__.TestSlopeAspectAgainstReference)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "raster/r.slope.aspect/testsuite/test_r_slope_aspect.py", line 71, in tearDownClass
    cls.runModule('g.remove', flags='f', type='rast', name=cls.elevation)
  File "etc/python/grass/gunittest/case.py", line 932, in runModule
    module = _module_from_parameters(module, **kwargs)
  File "etc/python/grass/gunittest/case.py", line 1060, in _module_from_parameters
    module = SimpleModule(module, **kwargs)
  File "etc/python/grass/gunittest/gmodules.py", line 54, in __init__
    Module.__init__(self, cmd, *args, **kargs)
  File "etc/python/grass/pygrass/modules/interface/module.py", line 556, in __init__
    self.__call__(*args, **kargs)
  File "etc/python/grass/pygrass/modules/interface/module.py", line 594, in __call__
    self.inputs[key].value = val
  File "etc/python/grass/pygrass/modules/interface/parameter.py", line 183, in _set_value
    self._value, self._rawvalue = _check_value(self, value)
  File "etc/python/grass/pygrass/modules/interface/parameter.py", line 91, in _check_value
    raise ValueError(must_val % (param.name, param.values))
ValueError: The Parameter <type>, must be one of the following values: ['raster', 'raster_3d', 'vector', 'old_vector', 'ascii_vector', 'labels', 'region', 'group', 'all']

======================================================================
FAIL: test_limits (__main__.TestSlopeAspect)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "raster/r.slope.aspect/testsuite/test_r_slope_aspect.py", line 25, in test_limits
    slope=slope, aspect=aspect)
  File "etc/python/grass/gunittest/case.py", line 1016, in assertModule
    self.fail(self._formatMessage(msg, stdmsg))
AssertionError: Running <r.slope.aspect> module ended with non-zero return code (1)
Called: r.slope_aspect(elevation='elevation', slope='limits_slope', aspect='limits_aspect', format='degrees', precision='FCELL', zscale=1.0, min_slope=0.0)
See the folowing errors:
ERROR: Raster map <elevation> not found


======================================================================
FAIL: test_limits_precent (__main__.TestSlopeAspect)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "raster/r.slope.aspect/testsuite/test_r_slope_aspect.py", line 35, in test_limits_precent
    slope=slope, aspect=aspect, format='percent')
  File "etc/python/grass/gunittest/case.py", line 1016, in assertModule
    self.fail(self._formatMessage(msg, stdmsg))
AssertionError: Running <r.slope.aspect> module ended with non-zero return code (1)
Called: r.slope_aspect(elevation='elevation', slope='limits_percent_slope', aspect='limits_percent_aspect', format='percent', precision='FCELL', zscale=1.0, min_slope=0.0)
See the folowing errors:
ERROR: Raster map <elevation> not found


----------------------------------------------------------------------
Ran 5 tests in 0.530s
FAILED (failures=2, errors=4)