You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bloodhound.apache.org by as...@apache.org on 2013/05/24 14:27:06 UTC
svn commit: r1486035 -
/bloodhound/trunk/bloodhound_multiproduct/tests/config.py
Author: astaric
Date: Fri May 24 12:27:06 2013
New Revision: 1486035
URL: http://svn.apache.org/r1486035
Log:
Expand symlinks in path.
Fixes two failing tests when there are symlinks
in the path to the tempdir.
Modified:
bloodhound/trunk/bloodhound_multiproduct/tests/config.py
Modified: bloodhound/trunk/bloodhound_multiproduct/tests/config.py
URL: http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_multiproduct/tests/config.py?rev=1486035&r1=1486034&r2=1486035&view=diff
==============================================================================
--- bloodhound/trunk/bloodhound_multiproduct/tests/config.py (original)
+++ bloodhound/trunk/bloodhound_multiproduct/tests/config.py Fri May 24 12:27:06 2013
@@ -45,7 +45,8 @@ class ProductConfigTestCase(Configuratio
self.env = self._setup_test_env()
# Dummy config file, a sibling of trac.ini
- self.filename = os.path.join(self.env.path, 'conf', 'product.ini')
+ tmpdir = os.path.realpath(self.env.path)
+ self.filename = os.path.join(tmpdir, 'conf', 'product.ini')
# Ensure conf sub-folder is created
os.mkdir(os.path.dirname(self.filename))