# HG changeset patch # User Sylvain Thénault # Date 1270722729 -7200 # Node ID 92376b009b98fac81f30d038d9450a61f54a59e9 # Parent 8d66003351f8485d7c4cdd2c4d25ceecf6fdbdd3 [test] avoid weird bug when test are changing the cwd diff -r 8d66003351f8 -r 92376b009b98 devtools/__init__.py --- a/devtools/__init__.py Thu Apr 08 09:59:59 2010 +0200 +++ b/devtools/__init__.py Thu Apr 08 12:32:09 2010 +0200 @@ -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