From 1c8fb8a3edb524c977e5b2dc63e61983e8c23f04 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Wed, 17 Feb 2010 10:15:03 +0000 Subject: Binding python tests: adapt test to use TOP_SRCDIR env var --- bindings/python/tests/binding_tests.py | 4 ++-- bindings/python/tests/profiles_tests.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'bindings/python/tests') 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): -- cgit