test_r_viewshed

./raster/r.viewshed – test_r_viewshed

Test failed

Test filetest_r_viewshed
Testsuite./raster/r.viewshed
StatusFAILED
Return code1
Number of tests1
Successful tests0
Failed tests2
Percent successful0%
Test duration0:00:01.679798
Tested modulesr.viewshed

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,
EE
======================================================================
ERROR: setUpClass (__main__.TestViewshed)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "raster/r.viewshed/testsuite/test_r_viewshed.py", line 12, in setUpClass
    cls.runModule('g.region', raster='elevation')
  File "etc/python/grass/gunittest/case.py", line 946, in runModule
    errors += call_module('g.list', type='rast')
  File "etc/python/grass/gunittest/gmodules.py", line 129, in call_module
    raise CalledModuleError(returncode, module, kwargs, errors)
CalledModuleError: Module run 1 g.list ended with error
Process ended with non-zero return code {'type': 'rast', 'stderr': -1, 'stdout': -1}. See the following errors:

Description:
 Lists available GRASS data base files of the user-specified data type optionally using the search pattern.

Keywords:
 general, map management, list

Usage:
 g.list [-iretmpf] type=datatype[,datatype,...] [pattern=string]
   [exclude=string] [mapset=name[,name,...]] [separator=character]
   [region=name] [output=name] [--overwrite] [--help] [--verbose]
   [--quiet] [--ui]

Flags:
  -i   Ignore case
  -r   Use basic regular expressions instead of wildcards
  -e   Use extended regular expressions instead of wildcards
  -t   Print data types
  -m   Print fully-qualified map names (including mapsets)
  -p   Pretty printing in human readable format
  -f   Verbose listing (also list map titles)
 --o   Allow output files to overwrite existing files
 --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
    pattern   Map name search pattern (default: all)
    exclude   Map name exclusion pattern (default: none)
     mapset   Name of mapset to list (default: current search path)
               '.' for current mapset; '*' for all mapsets in location
  separator   Field separator
               Special characters: pipe, comma, space, tab, newline
              default: newline
     region   Name of saved region for map search (default: not restricted)
               '.' for current region; '*' for default region
     output   Name for output file
               If not given or '-' then standard output

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


======================================================================
ERROR: test_viewshed (__main__.TestViewshedAgainstReference)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "raster/r.viewshed/testsuite/test_r_viewshed.py", line 118, in test_viewshed
    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__.TestViewshedAgainstReference.test_viewshed_compute_difference_raster_assertRastersNoDifference_reference_viewshed_minus_actual_viewshed', '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


----------------------------------------------------------------------
Ran 1 test in 0.667s
FAILED (errors=2)