devtools/__init__.py
branchstable
changeset 5210 1c635a91e403
parent 5208 1c154b055105
parent 5185 92376b009b98
child 5212 a545eb9add6f
--- a/devtools/__init__.py	Fri Apr 09 15:01:14 2010 +0000
+++ b/devtools/__init__.py	Fri Apr 09 15:01:25 2010 +0000
@@ -158,6 +158,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