summaryrefslogtreecommitdiffstats
path: root/testcases/Controllers/ONOS/Teston/adapters/client.py
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2016-09-05 12:30:08 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-09-05 12:30:08 +0000
commit7966eb35cc5fefcd6ca82e9d2864c0077b8a79c5 (patch)
tree1f3195af1404d6e96ab139951f97fd007c3fc2c3 /testcases/Controllers/ONOS/Teston/adapters/client.py
parentbeb0b0c8fddbdfd45fef0a7e9548b52e48f94c45 (diff)
parent0ae5f5fc64868e8c68eb330fa5aa219abdbdfee0 (diff)
Merge "Switch print to logging.info"
Diffstat (limited to 'testcases/Controllers/ONOS/Teston/adapters/client.py')
-rw-r--r--testcases/Controllers/ONOS/Teston/adapters/client.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/testcases/Controllers/ONOS/Teston/adapters/client.py b/testcases/Controllers/ONOS/Teston/adapters/client.py
index 77de092e4..6b3285e5e 100644
--- a/testcases/Controllers/ONOS/Teston/adapters/client.py
+++ b/testcases/Controllers/ONOS/Teston/adapters/client.py
@@ -10,15 +10,19 @@ Description:
# http://www.apache.org/licenses/LICENSE-2.0
#
"""
-from environment import environment
-import time
+import json
import pexpect
import requests
-import json
+import time
+
+from environment import environment
+import functest.utils.functest_logger as ft_logger
class client(environment):
+ logger = ft_logger.Logger("client").getLogger()
+
def __init__(self):
environment.__init__(self)
self.loginfo = environment()
@@ -50,7 +54,7 @@ class client(environment):
[len(lastshowscreeninfo)::])
lastshowscreeninfo = curshowscreeninfo
if Result == 0:
- print "Done!"
+ self.logger.info("Done!")
return
time.sleep(1)
circletime += 1
@@ -61,7 +65,7 @@ class client(environment):
def onosstart(self):
# This is the compass run machine user&pass,you need to modify
- print "Test Begin....."
+ self.logger.info("Test Begin.....")
self.OnosConnectionSet()
masterhandle = self.SSHlogin(self.localhost, self.masterusername,
self.masterpassword)