[dts] [PATCH V1] framework/project_dpdk: create the base_dir of dpdk if the path not exist
lihong
lihongx.ma at intel.com
Wed Jan 1 23:28:43 CET 2020
Signed-off-by: lihong <lihongx.ma at intel.com>
---
framework/project_dpdk.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/framework/project_dpdk.py b/framework/project_dpdk.py
index 3a0a449..7ec3aad 100644
--- a/framework/project_dpdk.py
+++ b/framework/project_dpdk.py
@@ -281,6 +281,10 @@ class DPDKdut(Dut):
# ToDo: make this configurable
dst_dir = "/tmp/"
+ out = self.send_expect("ls -d %s" % p_dir, "# ", verify=True)
+ if out == 2:
+ self.send_expect("mkdir -p %s" % p_dir, "# ")
+
out = self.send_expect("ls %s && cd %s" % (dst_dir, p_dir),
"#", verify=True)
if out == -1:
--
2.7.4
More information about the dts
mailing list