aboutsummaryrefslogtreecommitdiffstats
path: root/functest/ci/run_tests.py
diff options
context:
space:
mode:
authorLinda Wang <wangwulin@huawei.com>2017-08-30 09:00:27 +0000
committerLinda Wang <wangwulin@huawei.com>2017-09-13 06:12:52 +0000
commit0e057acf0cce634f0ab4e472184d2af2d46689fd (patch)
tree5728e041a0f16084fbd09a41e9e6c6558fd0cfe1 /functest/ci/run_tests.py
parent6c5c75973588e757f9bd4ee8f88fabfd1dc29b02 (diff)
Disable urllib3 warnings
1. When running in compass OSA, lots of SubjectAltNameWarnings are shown in console, so just disable the warnings here. See https://github.com/shazow/urllib3/issues/497 for details 2. Redirect warnings issued by the warnings module to the logging system via logging.captureWarnings(True) 3. But urllib3 warning is still there for two cmds about rally/tempest. Change-Id: Ic22cf8e2babc10c9d55a7ed46b841312a4e430a7 Signed-off-by: Linda Wang <wangwulin@huawei.com>
Diffstat (limited to 'functest/ci/run_tests.py')
-rw-r--r--functest/ci/run_tests.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/functest/ci/run_tests.py b/functest/ci/run_tests.py
index feafa89e6..a129ea737 100644
--- a/functest/ci/run_tests.py
+++ b/functest/ci/run_tests.py
@@ -264,6 +264,7 @@ class Runner(object):
def main():
logging.config.fileConfig(pkg_resources.resource_filename(
'functest', 'ci/logging.ini'))
+ logging.captureWarnings(True)
parser = RunTestsParser()
args = parser.parse_args(sys.argv[1:])
runner = Runner()