Commit e20e6711 authored by Barry Warsaw's avatar Barry Warsaw

Convert the ZEO test framework to use StorageTypes and ZConfig to

create the specific storage instances.  This lets us easily generalize
the tests (the Unix ones at least ;) to use the Berkeley Full storage.
parent 9a471ad7
...@@ -42,8 +42,17 @@ class UnixConnectionTests(ConnectionTests): ...@@ -42,8 +42,17 @@ class UnixConnectionTests(ConnectionTests):
(create, index, read_only)) (create, index, read_only))
path = "%s.%d" % (self.file, index) path = "%s.%d" % (self.file, index)
addr = self.addr[index] addr = self.addr[index]
pid, server = forker.start_zeo_server( conf = """\
'FileStorage', (path, create, read_only), addr, ro_svr) <Storage>
type FileStorage
file_name %s
create %s
read_only %s
</Storage>""" % (path,
create and 'yes' or 'no',
read_only and 'yes' or 'no')
pid, server = forker.start_zeo_server(conf, addr, ro_svr)
self._pids.append(pid) self._pids.append(pid)
self._servers.append(server) self._servers.append(server)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment