Hi,

On Sun, Apr 24, 2022 at 02:49:41PM +0200, Michael Banck wrote:
> If I apply the mentioned (and attached patch), slapd starts up fine:
> 
> |>>> import slapdtest
> |>>> server = slapdtest.SlapdObject()
> |>>> server.start()
> |starting slapd: %r /usr/sbin/slapd -f 
> /build/django-auth-ldap-3.0.0/python-ldap-test-49837/slapd.conf -F 
> /build/django-auth-ldap-3.0.0/python-ldap-test-49837/slapd.d -h 
> ldap://127.0.0.1:49837/ 
> ldapi://%2Fbuild%2Fdjango-auth-ldap-3.0.0%2Fpython-ldap-test-49837%2Fldapi -d > 0
> |>>> 
> 
> and django-auth-ldap's tests pass:
> 
> |I: pybuild base:239: PYTHONPATH=. python3.9 /usr/bin/django-admin test 
> --settings tests.settings
> |Creating test database for alias 'default'...
> |System check identified no issues (0 silenced).
> |starting slapd: %r /usr/sbin/slapd -f 
> /build/django-auth-ldap-3.0.0/python-ldap-test-33057/slapd.conf -F 
> /build/django-auth-ldap-3.0.0/python-ldap-test-33057/slapd.d -h 
> ldap://127.0.0.1:33057/ 
> ldapi://%2Fbuild%2Fdjango-auth-ldap-3.0.0%2Fpython-ldap-test-33057%2Fldapi -d > 0
> |........................................................................................
> |----------------------------------------------------------------------
> |Ran 88 tests in 3.494s
> |
> |OK

However, python-ldap still doesn't get through its test suite (which
really should be run during package build or as autopkgtest) with that
patch, but with the attached updated patch it passes fine:

|Ran 235 tests in 42.709s
|
|OK (skipped=38, expected failures=5)


Michael
--- ./Lib/slapdtest/_slapdtest.py.orig	2022-04-24 12:55:37.979187400 +0000
+++ ./Lib/slapdtest/_slapdtest.py	2022-04-24 12:55:59.327002871 +0000
@@ -402,7 +402,6 @@
         slapd_args = [
             self.PATH_SLAPD,
             '-f', self._slapd_conf,
-            '-F', self.testrundir,
             '-h', ' '.join(urls),
         ]
         if self._log.isEnabledFor(logging.DEBUG):

Reply via email to