commit 991a6545c263fbb83e3b0d5b1a1ebb482f84dbd6
Author: Damian Johnson <[email protected]>
Date: Mon Nov 24 12:00:16 2014 -0800
Cleaning up the hidden service directories created by the tests
Integ tests for our new hidden service methods caused us to have some
directories left over afterward. Cleaning 'em up.
---
test/integ/control/controller.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/test/integ/control/controller.py b/test/integ/control/controller.py
index 1f20f9f..cc4d12c 100644
--- a/test/integ/control/controller.py
+++ b/test/integ/control/controller.py
@@ -530,6 +530,12 @@ class TestController(unittest.TestCase):
finally:
controller.set_hidden_service_conf({}) # drop hidden services created
during the test
+ # clean up the hidden service directories created as part of this test
+
+ shutil.rmtree('test_hidden_service1')
+ shutil.rmtree('test_hidden_service2')
+ shutil.rmtree('test_hidden_serviceX')
+
def test_set_conf(self):
"""
Exercises set_conf(), reset_conf(), and set_options() methods with valid
_______________________________________________
tor-commits mailing list
[email protected]
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits