aboutsummaryrefslogtreecommitdiffstats
path: root/testcases/OpenStack
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2016-09-26 15:51:45 +0800
committerSerenaFeng <feng.xiaowei@zte.com.cn>2016-09-26 15:51:45 +0800
commit702a991e4a24320b99cd86525394089de724e7cf (patch)
tree173351fdb2ad187cca668a6a09ef65da42118026 /testcases/OpenStack
parent1b7f3d721086d5d645bd968387a523f9df0c8c63 (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>
Diffstat (limited to 'testcases/OpenStack')
-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()