diff options
author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-02-17 10:15:03 +0000 |
---|---|---|
committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-02-17 10:15:03 +0000 |
commit | 1c8fb8a3edb524c977e5b2dc63e61983e8c23f04 (patch) | |
tree | 6b582a779b51bd9f4a23faa837132a04d6e91ed9 /bindings | |
parent | 9709ec43424e2634909bec40043f096391ca3ca2 (diff) | |
download | lasso-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')
-rwxr-xr-x | bindings/python/tests/binding_tests.py | 4 | ||||
-rwxr-xr-x | bindings/python/tests/profiles_tests.py | 4 |
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): |