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:
parent
dda1b74ea1
commit
6c391e18a4
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user