summaryrefslogtreecommitdiffstats
path: root/src/sbin
diff options
context:
space:
mode:
Diffstat (limited to 'src/sbin')
-rwxr-xr-xsrc/sbin/bcfg2-test9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/sbin/bcfg2-test b/src/sbin/bcfg2-test
index 4123effe4..25476c7b4 100755
--- a/src/sbin/bcfg2-test
+++ b/src/sbin/bcfg2-test
@@ -71,9 +71,14 @@ class ClientTest(TestCase):
def get_sigint_handler(core):
- def hdlr(sig, frame):
+ """ Get a function that handles SIGINT/Ctrl-C by shutting down the
+ core and exiting properly."""
+
+ def hdlr(sig, frame): # pylint: disable=W0613
+ """ Handle SIGINT/Ctrl-C by shutting down the core and exiting
+ properly. """
core.shutdown()
- os._exit(1)
+ os._exit(1) # pylint: disable=W0212
return hdlr