Skip to content

Commit

Permalink
SlapdObject.testrunsubdirs should at least contain 'schema'
Browse files Browse the repository at this point in the history
  • Loading branch information
stroeder committed Aug 15, 2017
1 parent 8afd4c0 commit d7cdb08
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Lib/slapdtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
See https://www.python-ldap.org/ for details.
$Id: slapdtest.py,v 1.16 2017/08/15 16:21:58 stroeder Exp $
$Id: slapdtest.py,v 1.17 2017/08/15 16:39:26 stroeder Exp $
Python compability note:
This module only works with Python 2.7.x since
Expand Down Expand Up @@ -99,7 +99,9 @@ class SlapdObject(object):
# use SASL/EXTERNAL via LDAPI when invoking OpenLDAP CLI tools
cli_sasl_external = True
local_host = '127.0.0.1'
testrunsubdirs = (())
testrunsubdirs = (
'schema',
)
openldap_schema_files = (
'core.schema',
)
Expand All @@ -125,6 +127,7 @@ def __init__(self):
self._port = self._avail_tcp_port()
self.server_id = self._port % 4096
self.testrundir = os.path.join(self.TMPDIR, 'python-ldap-test-%d' % self._port)
self._schema_prefix = os.path.join(self.testrundir, 'schema')
self._slapd_conf = os.path.join(self.testrundir, 'slapd.conf')
self._db_directory = os.path.join(self.testrundir, "openldap-data")
self.ldap_uri = "ldap://%s:%d/" % (LOCALHOST, self._port)
Expand Down

0 comments on commit d7cdb08

Please sign in to comment.