* [dts] [PATCH V1] framework dut: do not exit when no network connection found
@ 2017-06-12 6:06 Marvin Liu
0 siblings, 0 replies; only message in thread
From: Marvin Liu @ 2017-06-12 6:06 UTC (permalink / raw)
To: dts; +Cc: Marvin Liu
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@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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-06-12 6:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-12 6:06 [dts] [PATCH V1] framework dut: do not exit when no network connection found Marvin Liu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).