summaryrefslogtreecommitdiff
path: root/selftest/selftesthelpers.py
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-04-15 12:27:30 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-04-16 11:43:04 +0200
commit831955ddf2d2d11b27318d8960d44c6ae9da624f (patch)
treee34bd6b0d8a6708d8b487a0ab7f2c3171b5e410e /selftest/selftesthelpers.py
parent82fdad8a4c1e45d171a75b133eff8f9768edd682 (diff)
downloadsamba-831955ddf2d2d11b27318d8960d44c6ae9da624f.tar.gz
selftest: Provide a single bindir_path function across all targets
This will allow a mapping to be made between things like smbtorture4 -> smbtorture that is correct for the different build environments. Andrew Bartlett
Diffstat (limited to 'selftest/selftesthelpers.py')
-rw-r--r--selftest/selftesthelpers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/selftest/selftesthelpers.py b/selftest/selftesthelpers.py
index 781c8ccb9a8..5b6c5a53494 100644
--- a/selftest/selftesthelpers.py
+++ b/selftest/selftesthelpers.py
@@ -22,10 +22,10 @@ import os
import subprocess
def srcdir():
- return os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(__file__)), ".."))
+ return os.path.normpath(os.getenv("SRCDIR", os.path.join(os.path.dirname(os.path.abspath(__file__)), "..")))
def source4dir():
- return os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(__file__)), "../source4"))
+ return os.path.normpath(os.path.join(srcdir(), "source4"))
def bindir():
return os.path.normpath(os.path.join(os.getenv("BUILDDIR", "."), "bin"))