python(tests): print logging when running tests in verbose mode

pull/265/head
Yohan Boniface 2 years ago
parent 7e3a8111ba
commit 410cf61d94

@ -9,6 +9,7 @@ tests under 'arc unit' and under Jenkins.
./sandbox/nacl/bin/run python /grist/runtests.py [--xunit]
"""
import codecs
import logging
import os
import sys
import unittest
@ -30,6 +31,9 @@ def main():
utf8_stdout = codecs.getwriter('utf8')(utf8_stdout)
test_runner = xmlrunner.XMLTestRunner(stream=utf8_stdout)
if "-v" in argv or "--verbose" in argv:
logging.basicConfig(level=logging.DEBUG)
if all(arg.startswith("-") for arg in argv[1:]):
argv.insert(1, "discover")

Loading…
Cancel
Save