Commit dd64e981 authored by manuel's avatar manuel

Update the messages showed by the terminal

parent a6c67c6f
......@@ -100,8 +100,8 @@ def main(configuration):
busIdSpec2 = configuration["busIdSpec2"]
try:
print("\nExecuting advanced DIO test")
print("This test needs White Rabbit working")
print("Executing advanced DIO test")
testAdvDIO(hostName1,userName1,password1,interfaceName1,busIdSpec1,hostName2,userName2,password2,interfaceName2,busIdSpec2)
print("Test advanced DIO: successful")
except:
......
......@@ -106,8 +106,9 @@ def main(configuration):
error = False
numberChannels = 5
print("\nExecuting DIO test")
print("This test needs White Rabbit working")
print("Executing DIO test")
for i in range(numberChannels):
error |= tryChannel(hostName1,userName1,password1,busIdSpec1,hostName2,userName2,password2,busIdSpec2,i)
......
......@@ -28,24 +28,27 @@ def configurationIpInterface(hostName,userName,password,busId,interfaceName,ip):
"""
try:
sshCmd = SshCmd()
#check network manager
command = "sudo service network-manager status | grep running"
value = sshCmd.exec(hostName,command,userName,password)
if ("running" in value):
print("\nWarning: The network manager is running on host %s, the test may not work correctly\n" % ip)
command = "sudo ifconfig " + interfaceName + " " + ip
sshCmd.exec(hostName,command,userName,password)
command = "ifconfig | grep " + ip + " | wc -l"
value = sshCmd.exec(hostName,command,userName,password)
if (int(value) == 1):
vuart = Vuart(hostName,userName,password,busId)
value = vuart.setIp(ip)
if (("IP-address: " + str(ip)) in value):
print("Configuration ip interface: ok in host:",hostName)
else:
raise
print("Configuration ip interface: ok on host:",hostName)
else:
raise
except SshCmdException as e:
sshCmd.printSshErrorCommand(e.strError,command)
print("Configuration ip interface: error in host:",hostName)
print("Configuration ip interface: error on host:",hostName)
raise
except:
print("Configuration ip interface2: error in host:",hostName)
print("Configuration ip interface: error on host:",hostName)
raise
......@@ -107,7 +110,8 @@ def main(configuration):
interfaceName2 = configuration["interfaceName2"]
try:
print("Executing NIC test")
print("\nExecuting NIC test")
print("This test needs the network manager stopped")
configurationIpInterface(hostName1,userName1,password1,busIdSpec1,interfaceName1,ipWR1)
configurationIpInterface(hostName2,userName2,password2,busIdSpec2,interfaceName2,ipWR2)
testIperf(hostName1,userName1,password1,ipWR2,hostName2,userName2,password2)
......
......@@ -84,7 +84,7 @@ def checkTrackPhase(hostName,userName,password,busId):
"""
try:
vuart = Vuart(hostName,userName,password,busId)
numberTimesTry = 10
numberTimesTry = 15
i = 0
while not vuart.isTrackPhase():
if (i == numberTimesTry):
......@@ -114,7 +114,7 @@ def main(configuration):
interfaceName2 = configuration["interfaceName2"]
try:
print("Executing WR test")
print("\nExecuting WR test")
masterSpec1 = whoIsMaster(hostName1,userName1,password1,busIdSpec1)
masterSpec2 = whoIsMaster(hostName2,userName2,password2,busIdSpec2)
if (masterSpec1 == 1 or masterSpec2 == 1):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment