<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Gang,<br>
<br>
This tar file may not existed on tester and zipped filename can be
changed by dts parameter.<br>
Please do not assume that tester has the source code.<br>
Just from your patch, you have handled the difference of FreeBSD.
Why not just do it on DUT?<br>
<br>
Please also check other suites whether they may also facing the same
issue.<br>
<br>
Thanks,<br>
Marvin<br>
<br>
<br>
<div class="moz-cite-prefix">On 08/29/2017 04:04 PM, xu,gang wrote:<br>
</div>
<blockquote
cite="mid:1503993854-99839-1-git-send-email-gangx.xu@intel.com"
type="cite">
<pre wrap="">- 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 <i class="moz-txt-slash"><span class="moz-txt-tag">/</span>tmp<span class="moz-txt-tag">/</span></i>", "# ")
+ 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, "# ")
+</pre>
</blockquote>
<br>
</body>
</html>