[GRASS-SVN] r64886 - grass/trunk/lib/python/gunittest
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Mar 19 11:24:26 PDT 2015
Author: wenzeslaus
Date: 2015-03-19 11:24:26 -0700 (Thu, 19 Mar 2015)
New Revision: 64886
Modified:
grass/trunk/lib/python/gunittest/invoker.py
Log:
gunittest: switch to more plain percentage output (#2458, percentage in standard format are replaced by new percentage which might give strange results when included into a text file)
Modified: grass/trunk/lib/python/gunittest/invoker.py
===================================================================
--- grass/trunk/lib/python/gunittest/invoker.py 2015-03-18 20:42:55 UTC (rev 64885)
+++ grass/trunk/lib/python/gunittest/invoker.py 2015-03-19 18:24:26 UTC (rev 64886)
@@ -135,7 +135,15 @@
env = os.environ.copy()
mapset, mapset_dir = self._create_mapset(gisdbase, location, module)
gisrc = gsetup.write_gisrc(gisdbase, location, mapset)
+
+ # here is special setting of environmental variables for running tests
+ # some of them might be set from outside in the future and if the list
+ # will be long they should be stored somewhere separately
+
+ # use custom gisrc, not current session gisrc
env['GISRC'] = gisrc
+ # percentage in plain format is 0...10...20... ...100
+ env['GRASS_MESSAGE_FORMAT'] = 'plain'
stdout_path = os.path.join(cwd, 'stdout.txt')
stderr_path = os.path.join(cwd, 'stderr.txt')
More information about the grass-commit
mailing list