Commit bdbdca3e authored by Jérome Perrin's avatar Jérome Perrin

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

parent 205e1161
......@@ -25,12 +25,14 @@
#
##############################################################################
import unittest
import logging
import os
# When running with debug enabled output more logs, otherwise disable log
# output.
# When running with debug enabled install Ctrl+C handler and output more logs,
# otherwise disable log output.
if os.environ.get('SLAPOS_TEST_DEBUG'):
unittest.installHandler()
logging.basicConfig(level=logging.DEBUG)
else:
logging.basicConfig(filename=os.devnull)
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