summaryrefslogtreecommitdiffstats
path: root/bindings/python
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-02-17 10:15:03 +0000
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-02-17 10:15:03 +0000
commit1c8fb8a3edb524c977e5b2dc63e61983e8c23f04 (patch)
tree6b582a779b51bd9f4a23faa837132a04d6e91ed9 /bindings/python
parent9709ec43424e2634909bec40043f096391ca3ca2 (diff)
downloadlasso-1c8fb8a3edb524c977e5b2dc63e61983e8c23f04.tar.gz
lasso-1c8fb8a3edb524c977e5b2dc63e61983e8c23f04.tar.xz
lasso-1c8fb8a3edb524c977e5b2dc63e61983e8c23f04.zip
Binding python tests: adapt test to use TOP_SRCDIR env var
Diffstat (limited to 'bindings/python')
-rwxr-xr-xbindings/python/tests/binding_tests.py4
-rwxr-xr-xbindings/python/tests/profiles_tests.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/bindings/python/tests/binding_tests.py b/bindings/python/tests/binding_tests.py
index 872d2f3c..389b474a 100755
--- a/bindings/python/tests/binding_tests.py
+++ b/bindings/python/tests/binding_tests.py
@@ -39,8 +39,8 @@ import lasso
try:
dataDir
except NameError:
- srcdir = os.environ.get('srcdir', '.')
- dataDir = '%s/../../../tests/data' % srcdir
+ srcdir = os.environ.get('TOP_SRCDIR', '.')
+ dataDir = '%s/tests/data' % srcdir
class BindingTestCase(unittest.TestCase):
diff --git a/bindings/python/tests/profiles_tests.py b/bindings/python/tests/profiles_tests.py
index b1dd0442..7ac50dce 100755
--- a/bindings/python/tests/profiles_tests.py
+++ b/bindings/python/tests/profiles_tests.py
@@ -40,8 +40,8 @@ import lasso
try:
dataDir
except NameError:
- srcdir = os.environ.get('srcdir', '.')
- dataDir = '%s/../../../tests/data' % srcdir
+ srcdir = os.environ.get('TOP_SRCDIR', '.')
+ dataDir = '%s/tests/data' % srcdir
class ServerTestCase(unittest.TestCase):