X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=yardstick%2F__init__.py;h=c31948d4309a0d013d2a74d3cc4472003c7439a8;hb=893294646833bed300586ee36040d4fde3c20842;hp=b799c765f58de4bbfbb39da4bfa11597e5d37127;hpb=6b9779bb4e98b636db41903549a8d64af81d9f71;p=yardstick.git diff --git a/yardstick/__init__.py b/yardstick/__init__.py index b799c765f..c31948d43 100644 --- a/yardstick/__init__.py +++ b/yardstick/__init__.py @@ -9,10 +9,17 @@ import logging import logging.config +import sys +import os +import yardstick.vTC.apexlake as apexlake + +# Hack to be able to run apexlake unit tests +# without having to install apexlake. +sys.path.append(os.path.dirname(apexlake.__file__)) logging.basicConfig( level=logging.WARNING, - format='[%(asctime)s] %(name)-20s %(filename)s:%(lineno)d %(levelname)s %(message)s',#noqa + format='[%(asctime)s] %(name)-20s %(filename)s:%(lineno)d ' + '%(levelname)s %(message)s', # noqa datefmt='%m/%d/%y %H:%M:%S') logging.getLogger(__name__).setLevel(logging.INFO) -