diff options
| author | Noel Power <noel.power@suse.com> | 2018-12-07 18:52:17 +0000 |
|---|---|---|
| committer | Andrew Bartlett <abartlet@samba.org> | 2018-12-14 00:51:32 +0100 |
| commit | d20f06986ee8f176106446c8ae32f0900ea4e4cf (patch) | |
| tree | 3388a12e749197aeaa8e07914dd31a7139bf9161 /source4/dsdb/tests/python | |
| parent | e9a13d7fc84beb9546c75c8de15aa7246bed71e5 (diff) | |
| download | samba-d20f06986ee8f176106446c8ae32f0900ea4e4cf.tar.gz samba-d20f06986ee8f176106446c8ae32f0900ea4e4cf.tar.bz2 samba-d20f06986ee8f176106446c8ae32f0900ea4e4cf.zip | |
selftest: Convert samba4.ldap.sort.python to planoldpythontest
Currently the test only runs fully under python2. As an interim
measure while we figure out how to get this to work property under
python3 I have converted the test to planoldpythontest so it also
can run under python2
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/dsdb/tests/python')
| -rw-r--r-- | source4/dsdb/tests/python/sort.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/dsdb/tests/python/sort.py b/source4/dsdb/tests/python/sort.py index 0b87442af39..f9c7ecd37bb 100644 --- a/source4/dsdb/tests/python/sort.py +++ b/source4/dsdb/tests/python/sort.py @@ -43,7 +43,10 @@ if len(args) < 1: parser.print_usage() sys.exit(1) -host = args[0] +host = os.getenv("SERVER", None) +if not host: + print("Please specify the host with env variable SERVER") + sys.exit(1) lp = sambaopts.get_loadparm() creds = credopts.get_credentials(lp) @@ -387,6 +390,3 @@ if "://" not in host: host = "tdb://%s" % host else: host = "ldap://%s" % host - - -TestProgram(module=__name__, opts=subunitopts) |
