[GRASS-SVN] r60474 - grass/branches/releasebranch_7_0/scripts/db.test

svn_grass at osgeo.org svn_grass at osgeo.org
Sun May 25 02:22:39 PDT 2014


Author: neteler
Date: 2014-05-25 02:22:39 -0700 (Sun, 25 May 2014)
New Revision: 60474

Modified:
   grass/branches/releasebranch_7_0/scripts/db.test/db.test.py
Log:
db.test: print which DB driver is tested

Modified: grass/branches/releasebranch_7_0/scripts/db.test/db.test.py
===================================================================
--- grass/branches/releasebranch_7_0/scripts/db.test/db.test.py	2014-05-25 09:22:29 UTC (rev 60473)
+++ grass/branches/releasebranch_7_0/scripts/db.test/db.test.py	2014-05-25 09:22:39 UTC (rev 60474)
@@ -29,6 +29,7 @@
 import sys
 import os
 from grass.script import core as grass
+from grass.script import db as grassdb
 
 def main():
     test_file = options['test']
@@ -36,6 +37,9 @@
     expected = grass.tempfile()
     result = grass.tempfile()
 
+    dbconn = grassdb.db_connection()
+    grass.message(_("Using DB driver: %s") % dbconn['driver'])
+
     infile = os.path.join(os.environ['GISBASE'], 'etc', 'db.test', test_file)
     inf = file(infile)
 



More information about the grass-commit mailing list