aboutsummaryrefslogtreecommitdiffstats
path: root/sfc/tests/functest/run_tests.py
diff options
context:
space:
mode:
authorvijayendra Radhakrishna <vradhakrishna@mvista.com>2017-05-24 10:12:57 +0000
committerVijayendra Radhakrishna <vradhakrishna@mvista.com>2017-05-26 19:02:17 +0530
commita29f1fcf91f130f74dbd9d7c83bb7445faec6136 (patch)
tree73f779bcc1d03a833a6f3712d5a41f3cadf0262d /sfc/tests/functest/run_tests.py
parentfdd96be78394a3ce05d9db5f4f68b60b02e48b1a (diff)
functest_logger changes fix
- Recently there is removal of functest logger utils. - This uses the default python logging mechanism Change-Id: I3aba38041bbed8b1e5a3de93bc9f639253f262d8 Signed-off-by: Vijayendra Radhakrishna <vradhakrishna@mvista.com>
Diffstat (limited to 'sfc/tests/functest/run_tests.py')
-rw-r--r--sfc/tests/functest/run_tests.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/sfc/tests/functest/run_tests.py b/sfc/tests/functest/run_tests.py
index 88a351a0..6760e168 100644
--- a/sfc/tests/functest/run_tests.py
+++ b/sfc/tests/functest/run_tests.py
@@ -15,19 +15,20 @@ import sys
import time
import yaml
-import functest.utils.functest_logger as ft_logger
+import logging
import functest.utils.functest_utils as ft_utils
import functest.utils.openstack_utils as os_utils
import opnfv.utils.ovs_logger as ovs_log
import sfc.lib.cleanup as sfc_cleanup
import sfc.lib.config as sfc_config
import sfc.lib.utils as sfc_utils
+from functest.utils.constants import CONST
from collections import OrderedDict
from opnfv.deployment.factory import Factory as DeploymentFactory
-logger = ft_logger.Logger(__name__).getLogger()
+logger = logging.getLogger(__name__)
COMMON_CONFIG = sfc_config.CommonConfig()
@@ -171,6 +172,8 @@ def main(report=False):
if __name__ == '__main__':
+ logging.config.fileConfig(
+ CONST.__getattribute__('dir_functest_logging_cfg'))
parser = argparse.ArgumentParser()
parser.add_argument("-r", "--report",
help="Create json result file",