* [dts] [V1] framework/tester: Fix issues of import scapy dependent package
@ 2022-03-22 8:53 Jun Dong
2022-03-23 7:18 ` lijuan.tu
0 siblings, 1 reply; 2+ messages in thread
From: Jun Dong @ 2022-03-22 8:53 UTC (permalink / raw)
To: dts; +Cc: lijuan.tu, qingx.sun, junx.dong
Signed-off-by: Jun Dong <junx.dong@intel.com>
---
framework/tester.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/framework/tester.py b/framework/tester.py
index 21b6702e..d387983f 100644
--- a/framework/tester.py
+++ b/framework/tester.py
@@ -111,6 +111,12 @@ class Tester(Crb):
session = self.create_session(session_name)
self.scapy_sessions_li.append(session)
session.send_expect("scapy", ">>> ")
+
+ # import scapy moudle to scapy APP
+ out = session.session.send_expect(get_scapy_module_impcmd(), ">>> ")
+ if "ImportError" in out:
+ session.logger.warning(f"entering import error: {out}")
+
return session
def check_scapy_version(self):
--
2.25.1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-03-23 7:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-22 8:53 [dts] [V1] framework/tester: Fix issues of import scapy dependent package Jun Dong
2022-03-23 7:18 ` lijuan.tu
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).