From 594adf4d31c80ecf38afd4f0eb90412eca97f614 Mon Sep 17 00:00:00 2001 From: Timofey Date: Wed, 22 Jun 2016 12:55:24 +0300 Subject: [PATCH] Added the warning module. --- tools/python/integration_tests_runner.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/python/integration_tests_runner.py b/tools/python/integration_tests_runner.py index f28e06f3ec..b326aadafc 100644 --- a/tools/python/integration_tests_runner.py +++ b/tools/python/integration_tests_runner.py @@ -6,6 +6,7 @@ import multiprocessing from argparse import ArgumentParser from os import path import subprocess +from warnings import warn from run_desktop_tests import tests_on_disk from Util import TemporaryDirectory @@ -183,7 +184,7 @@ class IntegrationRunner: setup_jenkins_console_logger() if args.log_start_finish: - multiprocessing.get_logger().warning("The -l option is now deprecated. Please, remove it from your build scripts. It may be removed at any time.") + warn("The -l option is now deprecated. Please, remove it from your build scripts. It may be removed at any time.") def prepare_cli_parser(self): @@ -217,7 +218,7 @@ class IntegrationRunner: parser.add_argument( "-l", "--log_start_finish", dest="log_start_finish", action="store_true", default=False, - help="Write to log each time a test starts or finishes. May be useful if you need to find out which of the tests runs for how long, and which test hang. May slow down the execution of tests." + help="DEPRECATED. Write to log each time a test starts or finishes. May be useful if you need to find out which of the tests runs for how long, and which test hang. May slow down the execution of tests." ) return parser