summaryrefslogtreecommitdiffstats
path: root/testcases/OpenStack/vPing/vping.py
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2016-09-26 15:51:45 +0800
committerMorgan Richomme <morgan.richomme@orange.com>2016-09-26 08:45:05 +0000
commit2dc1bfffff44f8094090514ef41e6d11eb54547a (patch)
treee807d4302850f83b2051e3b56dc5f42befa1f07e /testcases/OpenStack/vPing/vping.py
parent002ff3a7852fc4bce6e09dc26ade2e5c2823c7a3 (diff)
vPing ssh outpust wrong logger
set logger file according to case_name rather than use fixed 'vping_userdata' JIRA: FUNCTEST-490 Change-Id: I65169a59ec1978410fdbd6dadc82da024a4504c7 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn> (cherry picked from commit 702a991e4a24320b99cd86525394089de724e7cf)
Diffstat (limited to 'testcases/OpenStack/vPing/vping.py')
-rwxr-xr-xtestcases/OpenStack/vPing/vping.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/testcases/OpenStack/vPing/vping.py b/testcases/OpenStack/vPing/vping.py
index 168ed4f8f..08579e105 100755
--- a/testcases/OpenStack/vPing/vping.py
+++ b/testcases/OpenStack/vPing/vping.py
@@ -33,8 +33,8 @@ parser.add_argument("-m", "--mode", default='ssh',
args = parser.parse_args()
-""" logging configuration """
-logger = ft_logger.Logger("vping_userdata").getLogger()
+""" logging declaration """
+logger = None
def main():
@@ -43,6 +43,9 @@ def main():
else:
case = 'vping_userdata'
+ global logger
+ logger = ft_logger.Logger(case).getLogger()
+
util.init(logger)
util.check_repo_exist()