diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2013-01-29 08:39:11 -0500 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2013-01-29 08:39:11 -0500 |
commit | e74a45e719cbb5445720a32c8a3ec41b306e2667 (patch) | |
tree | abd1f02903e4e9a8fd8f2e87a45630b97106a08c /src | |
parent | 257dff5cbe26a111b719201a0031da39a34b0fe0 (diff) | |
download | bcfg2-e74a45e719cbb5445720a32c8a3ec41b306e2667.tar.gz bcfg2-e74a45e719cbb5445720a32c8a3ec41b306e2667.tar.bz2 bcfg2-e74a45e719cbb5445720a32c8a3ec41b306e2667.zip |
fixed unit tests
Diffstat (limited to 'src')
-rwxr-xr-x | src/sbin/bcfg2-test | 9 |
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 |