Commit 6d95ac41 authored by Jérome Perrin's avatar Jérome Perrin

tests: enable unittest Ctrl+C handler when SLAPOS_TEST_DEBUG is set

parent 80c5d536
......@@ -25,12 +25,14 @@
#
##############################################################################
import unittest
import logging
import os
# When running with debug enabled output more logs, otherwise disable warning
# level logs.
# When running with debug enabled install Ctrl+C handler and output more logs,
# otherwise disable warning level logs.
if os.environ.get('SLAPOS_TEST_DEBUG'):
unittest.installHandler()
logging.basicConfig(level=logging.WARNING)
else:
logging.disable(logging.ERROR)
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment