[dts] [PATCH V1] framework/project_dpdk: create the base_dir of dpdk if the path not exist

Tu, Lijuan lijuan.tu at intel.com
Thu Jan 2 07:03:42 CET 2020


applied

> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of lihong
> Sent: Thursday, January 2, 2020 6:29 AM
> To: dts at dpdk.org
> Cc: Ma, LihongX <lihongx.ma at intel.com>
> Subject: [dts] [PATCH V1] framework/project_dpdk: create the base_dir of
> dpdk if the path not exist
> 
> 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