py3 fix for check-server.py
This commit is contained in:
Родитель
8ca71c193c
Коммит
4c121802ac
|
@ -17,12 +17,12 @@ def CheckServer():
|
||||||
#print output
|
#print output
|
||||||
RunLog.info("Checking if server was connected to client..")
|
RunLog.info("Checking if server was connected to client..")
|
||||||
if ("connected" in output) :
|
if ("connected" in output) :
|
||||||
str_out = string.split(output)
|
str_out = str.split(output)
|
||||||
#len_out = len(str_out)
|
#len_out = len(str_out)
|
||||||
#This for loop in used to check the every word of test output [Future plan]
|
#This for loop in used to check the every word of test output [Future plan]
|
||||||
for each in str_out :
|
for each in str_out :
|
||||||
#print(each)
|
#print(each)
|
||||||
if cmp(each, "connected")==0 :
|
if each == "connected":
|
||||||
RunLog.info("Server was successfully connected to client.")
|
RunLog.info("Server was successfully connected to client.")
|
||||||
ResultLog.info("PASS")
|
ResultLog.info("PASS")
|
||||||
break
|
break
|
||||||
|
|
Загрузка…
Ссылка в новой задаче