From 831955ddf2d2d11b27318d8960d44c6ae9da624f Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 15 Apr 2011 12:27:30 +1000 Subject: 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 --- selftest/selftesthelpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'selftest/selftesthelpers.py') diff --git a/selftest/selftesthelpers.py b/selftest/selftesthelpers.py index 781c8ccb9a..5b6c5a5349 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")) -- cgit