[GRASS-dev] [GRASS GIS] #2364: Error in gunittest get_svn_info()

#2364: Error in gunittest get_svn_info()
---------------------------------+------------------------------------------
Reporter: huhabla | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 7.1.0
Component: Default | Version: svn-trunk
Keywords: gunittest,testsuite | Platform: Linux
      Cpu: x86-64 |
---------------------------------+------------------------------------------
The SVN metadata analyzer in gunittest produces an error on my system when
invoking a test:

{{{
GRASS 7.1.svn (LL):~/src/grass7.1/grass_trunk/raster/r.gwflow > python -m
grass.gunittest.main ~/grassdata LAEA_ERTS89 LAEA_ERTS89
Traceback (most recent call last):
   File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
     "__main__", fname, loader, pkg_name)
   File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
     exec code in run_globals
   File "/home/soeren/src/grass7.1/grass_trunk/dist.x86_64-unknown-linux-
gnu/etc/python/grass/gunittest/main.py", line 143, in <module>
     results_dir=results_dir)
   File "/home/soeren/src/grass7.1/grass_trunk/dist.x86_64-unknown-linux-
gnu/etc/python/grass/gunittest/invoker.py", line 125, in run_in_location
     self.reporter = GrassTestFilesReporter(results_dir=results_dir)
   File "/home/soeren/src/grass7.1/grass_trunk/dist.x86_64-unknown-linux-
gnu/etc/python/grass/gunittest/reporters.py", line 135, in __init__
     svn_info = get_svn_info()
   File "/home/soeren/src/grass7.1/grass_trunk/dist.x86_64-unknown-linux-
gnu/etc/python/grass/gunittest/reporters.py", line 110, in get_svn_info
     relurl = entry.find('relative-url').text
AttributeError: 'NoneType' object has no attribute 'text'
}}}

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2364&gt;
GRASS GIS <http://grass.osgeo.org>