BIND 10 trac2353, updated. 6210dae2a6749d8c1e328de433c91058fd54b756 [2353] Add test for BoB.start_simple()
BIND 10 source code commits
bind10-changes at lists.isc.org
Tue Nov 6 09:30:05 UTC 2012
The branch, trac2353 has been updated
via 6210dae2a6749d8c1e328de433c91058fd54b756 (commit)
from 6b8c62acd872220aeb061f7c6e0fe50348ba3d60 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 6210dae2a6749d8c1e328de433c91058fd54b756
Author: Mukund Sivaraman <muks at isc.org>
Date: Tue Nov 6 14:59:47 2012 +0530
[2353] Add test for BoB.start_simple()
-----------------------------------------------------------------------
Summary of changes:
src/bin/bind10/tests/bind10_test.py.in | 11 +++++++++++
1 file changed, 11 insertions(+)
-----------------------------------------------------------------------
diff --git a/src/bin/bind10/tests/bind10_test.py.in b/src/bin/bind10/tests/bind10_test.py.in
index 3b2b7ee..030c72b 100644
--- a/src/bin/bind10/tests/bind10_test.py.in
+++ b/src/bin/bind10/tests/bind10_test.py.in
@@ -1401,6 +1401,17 @@ class TestBossComponents(unittest.TestCase):
bob.register_process(53, component)
self.assertEqual([[53, 'test', 'Test']], bob.get_processes())
+ def test_start_simple(self):
+ '''Test simple process startup.'''
+ bob = BoB()
+ bob.verbose = False
+ bob.c_channel_env = {}
+ pi = bob.start_simple('/bin/true')
+ self.assertEqual('/bin/true', pi.name)
+ self.assertEqual(['/bin/true'], pi.args)
+ self.assertEqual({}, pi.env)
+ self.assertNotEqual(0, pi.pid)
+
class SocketSrvTest(unittest.TestCase):
"""
This tests some methods of boss related to the unix domain sockets used
More information about the bind10-changes
mailing list