From: Andrew Bartlett Date: Sun, 20 May 2018 22:40:00 +0000 (+1200) Subject: selftest: Clean up ldb on tearDown from each packet in TrafficEmulatorPacketTests X-Git-Tag: ldb-1.4.0~111 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8d7e4c8985ab08b8f5580c1d823cf6b54b273c7;p=thirdparty%2Fsamba.git selftest: Clean up ldb on tearDown from each packet in TrafficEmulatorPacketTests Otherwise the LDB (and so the server resources) are in use until the end of the whole test due to the way the objects are maintained in python for reporting. Signed-off-by: Andrew Bartlett Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Wed May 23 00:53:25 CEST 2018 on sn-devel-144 --- diff --git a/python/samba/tests/emulate/traffic_packet.py b/python/samba/tests/emulate/traffic_packet.py index a2c4567ed1d..56b126759b2 100644 --- a/python/samba/tests/emulate/traffic_packet.py +++ b/python/samba/tests/emulate/traffic_packet.py @@ -89,6 +89,7 @@ class TrafficEmulatorPacketTests(samba.tests.TestCase): def tearDown(self): super(TrafficEmulatorPacketTests, self).tearDown() traffic.clean_up_accounts(self.ldb, 1) + del self.ldb shutil.rmtree(self.tempdir) def test_packet_cldap_03(self):