devtools/__init__.py
changeset 5196 d14bfd477c44
parent 5177 395e1ff018ae
parent 5185 92376b009b98
child 5238 31c12863fd9d
--- a/devtools/__init__.py	Thu Apr 08 13:38:36 2010 +0200
+++ b/devtools/__init__.py	Thu Apr 08 14:11:49 2010 +0200
@@ -155,6 +155,9 @@
         sources = super(TestServerConfiguration, self).sources()
         if not sources:
             sources = DEFAULT_SOURCES
+        if sources['system']['db-driver'] == 'sqlite':
+            # we need an abspath in case tests are changing the cwd
+            sources['system']['db-name'] = abspath(sources['system']['db-name'])
         return sources