BIND 10 trac788, updated. 888bcbc103826ce8de73b29c3e8bf48d5925fe27 Added '--brittle' flag (although don't use it yet).

BIND 10 source code commits bind10-changes at lists.isc.org
Thu Mar 31 08:11:10 UTC 2011


The branch, trac788 has been updated
       via  888bcbc103826ce8de73b29c3e8bf48d5925fe27 (commit)
      from  ea679d6d1fc5105027de1f0243817c66a32fa8ac (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 888bcbc103826ce8de73b29c3e8bf48d5925fe27
Author: Shane Kerr <shane at isc.org>
Date:   Thu Mar 31 10:10:03 2011 +0200

    Added '--brittle' flag (although don't use it yet).

-----------------------------------------------------------------------

Summary of changes:
 src/bin/bind10/bind10.py.in            |    2 ++
 src/bin/bind10/tests/bind10_test.py.in |    9 +++++++++
 2 files changed, 11 insertions(+), 0 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/bin/bind10/bind10.py.in b/src/bin/bind10/bind10.py.in
index bd0cd82..04c5c69 100755
--- a/src/bin/bind10/bind10.py.in
+++ b/src/bin/bind10/bind10.py.in
@@ -856,6 +856,8 @@ def parse_args(args=sys.argv[1:], Parser=OptionParser):
     parser.add_option("--pid-file", dest="pid_file", type="string",
                       default=None,
                       help="file to dump the PID of the BIND 10 process")
+    parser.add_option("--brittle", dest="brittle", action="store_true",
+                      help="debugging flag: exit if any component dies")
 
     (options, args) = parser.parse_args(args)
 
diff --git a/src/bin/bind10/tests/bind10_test.py.in b/src/bin/bind10/tests/bind10_test.py.in
index 368fdbd..79d8b11 100644
--- a/src/bin/bind10/tests/bind10_test.py.in
+++ b/src/bin/bind10/tests/bind10_test.py.in
@@ -550,6 +550,15 @@ class TestParseArgs(unittest.TestCase):
         options = parse_args(['--cmdctl-port=1234'], TestOptParser)
         self.assertEqual(1234, options.cmdctl_port)
 
+    def test_brittle(self):
+        """
+        Test we can use the "brittle" flag.
+        """
+        options = parse_args([], TestOptParser)
+        self.assertFalse(options.brittle)
+        options = parse_args(['--brittle'], TestOptParser)
+        self.assertTrue(options.brittle)
+
 class TestPIDFile(unittest.TestCase):
     def setUp(self):
         self.pid_file = '@builddir@' + os.sep + 'bind10.pid'




More information about the bind10-changes mailing list