1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

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>
This commit is contained in:
Douglas Bagnall 2016-07-29 10:57:52 +12:00 committed by Douglas Bagnall
parent dda1b74ea1
commit 6c391e18a4
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -206,6 +206,7 @@ for env in ["fileserver"]:
try:
config_h = os.environ["CONFIG_H"]
except KeyError:
samba4bindir = bindir()
config_h = os.path.join(samba4bindir, "default/include/config.h")
# see if libarchive is supported