提交 5d5c525e 编写于 作者: A air9

remove useless main

上级 f7d99f25
......@@ -63,18 +63,3 @@ class EthernetTest(RDMATest):
if not subtest():
return False
return True
if __name__ == '__main__':
t = EthernetTest()
t.server_ip = '199.1.1.2'
from hwcompatible.device import Device
properties = {
'DEVPATH': '/devices/pci0000:80/0000:80:01.0/0000:81:00.0/net/enp129s0f0',
'INTERFACE': 'enp129s0f0'
}
t.device = Device(properties)
t.interface = t.device.get_property("INTERFACE")
# t.setup()
t.test()
......@@ -47,18 +47,3 @@ class InfiniBandTest(RDMATest):
print("[.] The subnet manager lid is %s" % self.sm_lid)
return True
if __name__ == '__main__':
t = InfiniBandTest()
t.server_ip = '199.1.37.20'
t.speed = 10000 # Mb/s
from hwcompatible.device import Device
properties = {
'DEVPATH': '/devices/pci0000:d7/0000:d7:02.0/0000:d8:00.0/net/ib0',
'INTERFACE': 'ib0'
}
t.device = Device(properties)
t.interface = t.device.get_property("INTERFACE")
# t.setup()
t.test()
......@@ -371,18 +371,3 @@ class NetworkTest(Test):
self.set_other_interfaces_up()
print("[.] Test finished.")
if __name__ == '__main__':
t = NetworkTest()
t.server_ip = '9.82.37.2'
from hwcompatible.device import Device
properties = {
'DEVPATH': '/devices/pci0000:17/0000:17:00.0/0000:18:00.0/0000:19:03.0/0000:1a:00.2/net/eth_main',
'INTERFACE': 'eth_main'
}
t.device = Device(properties)
t.interface = t.device.get_property("INTERFACE")
# t.setup()
t.test()
......@@ -210,19 +210,3 @@ class RDMATest(NetworkTest):
if not subtest():
return False
return True
if __name__ == '__main__':
t = RDMATest()
t.server_ip = '199.1.37.20'
t.speed = 10000 # Mb/s
from hwcompatible.device import Device
properties = {
'DEVPATH': '/devices/pci0000:d7/0000:d7:02.0/0000:d8:00.0/net/ib0',
'INTERFACE': 'ib0'
}
t.device = Device(properties)
t.interface = t.device.get_property("INTERFACE")
# t.setup()
t.test()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册