[dts] [PATCH V1] fix ipfrag failed on FreeBSD

Liu, Yong yong.liu at intel.com
Tue Aug 29 19:45:39 CEST 2017


Gang,

This tar file may not existed on tester and zipped filename can be 
changed by dts parameter.
Please do not assume that tester has the source code.
Just from your patch, you have handled the difference of FreeBSD. Why 
not just do it on DUT?

Please also check other suites whether they may also facing the same issue.

Thanks,
Marvin


On 08/29/2017 04:04 PM, xu,gang wrote:
> -        self.dut.send_expect(r"sed -i '/l3fwd_ipv6_route_array\[\].*{/,/^\}\;/c\\%s' examples/ip_fragmentation/main.c" % lpmStr_ipv6, "# ")
> +
> +        if self.dut.get_os_type() == 'freebsd':
> +            self.tester.send_expect("tar zxf dep/dpdk.tar.gz -C/tmp/", "# ")
> +            self.tester.send_expect(
> +                r"sed -i '/l3fwd_ipv4_route_array\[\].*{/,/^\}\;/c\\%s' /tmp/dpdk/examples/ip_fragmentation/main.c" % lpmStr_ipv4, "# ")
> +            self.tester.send_expect(
> +                r"sed -i '/l3fwd_ipv6_route_array\[\].*{/,/^\}\;/c\\%s' /tmp/dpdk/examples/ip_fragmentation/main.c" % lpmStr_ipv6, "# ")
> +            self.dut.session.copy_file_to(
> +                '/tmp/dpdk/examples/ip_fragmentation/main.c', '/root/dpdk')
> +            self.dut.send_expect("mv main.c examples/ip_fragmentation/", "# ")
> +
> +        else:
> +            self.dut.send_expect(
> +                r"sed -i '/l3fwd_ipv4_route_array\[\].*{/,/^\}\;/c\\%s' examples/ip_fragmentation/main.c" % lpmStr_ipv4, "# ")
> +            self.dut.send_expect(
> +                r"sed -i '/l3fwd_ipv6_route_array\[\].*{/,/^\}\;/c\\%s' examples/ip_fragmentation/main.c" % lpmStr_ipv6, "# ")
> +

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://dpdk.org/ml/archives/dts/attachments/20170830/2d6b2297/attachment.html>


More information about the dts mailing list