summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchangru <changrux.fan@intel.com>2015-08-05 16:01:05 +0800
committerMarvin Liu <yong.liu@intel.com>2015-08-07 14:06:10 +0800
commit66b745f8122c90ce663b624b70bc7af0a6a3348d (patch)
tree168f34fda60ea1097449b5ad6e80e2bf0df214c0
parent170f0d693a5656e99928cb8c72192aafaa6cbceb (diff)
downloaddts-66b745f8122c90ce663b624b70bc7af0a6a3348d.zip
dts-66b745f8122c90ce663b624b70bc7af0a6a3348d.tar.gz
dts-66b745f8122c90ce663b624b70bc7af0a6a3348d.tar.xz
Fix issue in ipv4_reassembly
Signed-off-by: changru <changrux.fan@intel.com>
-rw-r--r--tests/TestSuite_ipv4_reassembly.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/TestSuite_ipv4_reassembly.py b/tests/TestSuite_ipv4_reassembly.py
index e24576c..3af4493 100644
--- a/tests/TestSuite_ipv4_reassembly.py
+++ b/tests/TestSuite_ipv4_reassembly.py
@@ -96,8 +96,10 @@ class TestIpReassembly(TestCase):
# r"examples/ip_reassembly/ipv4_rsmbl.h")
# self.dut.send_expect("sed -i 's/CONFIG_RTE_LIBRTE_IP_FRAG_MAX_FRAG=.*$/CONFIG_RTE_LIBRTE_IP_FRAG_MAX_FRAG=%s/' ./config/common_linuxapp" %int(num_of_fragments), "# ")
# self.dut.send_expect(sed_command % int(num_of_fragments), '#', 60)
-
- self.dut.send_expect("sed -i 's/CONFIG_RTE_LIBRTE_IP_FRAG_MAX_FRAG=.*$/CONFIG_RTE_LIBRTE_IP_FRAG_MAX_FRAG=%s/' ./config/common_linuxapp" % int(num_of_fragments), "# ")
+ if 'bsdapp' in self.target:
+ self.dut.send_expect("sed -i 's/CONFIG_RTE_LIBRTE_IP_FRAG_MAX_FRAG=.*$/CONFIG_RTE_LIBRTE_IP_FRAG_MAX_FRAG=%s/' ./config/common_bsdapp" % int(num_of_fragments), "# ")
+ else:
+ self.dut.send_expect("sed -i 's/CONFIG_RTE_LIBRTE_IP_FRAG_MAX_FRAG=.*$/CONFIG_RTE_LIBRTE_IP_FRAG_MAX_FRAG=%s/' ./config/common_linuxapp" % int(num_of_fragments), "# ")
self.dut.send_expect("export RTE_TARGET=" + self.target, "#")
self.dut.send_expect("export RTE_SDK=`pwd`", "#")
self.dut.send_expect("rm -rf %s" % self.target, "# ", 5)