summaryrefslogtreecommitdiff
path: root/selftest/tests.py
diff options
context:
space:
mode:
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>2016-07-29 10:57:52 +1200
committerDouglas Bagnall <dbagnall@samba.org>2016-08-31 07:09:26 +0200
commit6c391e18a47782a78e035f3e35a41710d8424105 (patch)
tree9dc040661e9479f3e00d0694f909e35c08772f9b /selftest/tests.py
parentdda1b74ea10a45d9a810b2a982e93cfb13dfeaba (diff)
downloadsamba-6c391e18a47782a78e035f3e35a41710d8424105.tar.gz
selftest: allow tests.py scripts to run independently
These generate lists of test commands. Usually they are run in special environments, but they should work from the command line. This restores the intended behaviour. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Diffstat (limited to 'selftest/tests.py')
-rw-r--r--selftest/tests.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/selftest/tests.py b/selftest/tests.py
index e02f049fb97..62dadab4974 100644
--- a/selftest/tests.py
+++ b/selftest/tests.py
@@ -23,6 +23,7 @@ from selftesthelpers import *
try:
config_h = os.environ["CONFIG_H"]
except KeyError:
+ samba4bindir = bindir()
config_h = os.path.join(samba4bindir, "default/include/config.h")
# define here var to check what we support