[dts] [PATCH V1] framework dut: do not exit when no network connection found
Marvin Liu
yong.liu at intel.com
Mon Jun 12 08:06:32 CEST 2017
Some suites like unit suites still can work without network connection.
So output warning message rather than raise exception when no network
connection found.
Signed-off-by: Marvin Liu <yong.liu at intel.com>
diff --git a/framework/dut.py b/framework/dut.py
index 3e90670..ddbe64e 100644
--- a/framework/dut.py
+++ b/framework/dut.py
@@ -206,7 +206,7 @@ class Dut(Crb):
for port_info in self.ports_info:
self.logger.info(port_info)
if self.ports_map is None or len(self.ports_map) == 0:
- raise ValueError("ports_map should not be empty, please check all links")
+ self.logger.warning("ports_map should not be empty, please check all links")
# initialize virtualization resource pool
self.virt_pool = VirtResource(self)
--
1.9.3
More information about the dts
mailing list