[V1] tests/TestSuite_efd:fix wrong sed command

Message ID 20200807165831.74128-1-weix.ling@intel.com (mailing list archive)
State Accepted
Headers
Series [V1] tests/TestSuite_efd:fix wrong sed command |

Commit Message

Ling, WeiX Aug. 7, 2020, 4:58 p.m. UTC
  fix wrong sed command, it miss '/' dut to replace failed

Signed-off-by: lingwei <weix.ling@intel.com>
---
 tests/TestSuite_efd.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Tu, Lijuan Aug. 12, 2020, 8:38 a.m. UTC | #1
> Subject: [dts] [PATCH V1] tests/TestSuite_efd:fix wrong sed command
> 
> fix wrong sed command, it miss '/' dut to replace failed
> 
> Signed-off-by: lingwei <weix.ling@intel.com>

Applied
  

Patch

diff --git a/tests/TestSuite_efd.py b/tests/TestSuite_efd.py
index ddd41f4..007e03b 100644
--- a/tests/TestSuite_efd.py
+++ b/tests/TestSuite_efd.py
@@ -164,7 +164,7 @@  class TestEFD(TestCase):
             self.result_table_add([val_bitnum, 2, "2M",  pps])
 
         self.result_table_print()
-        self.dut.send_expect("sed -i -e 's/#define RTE_EFD_VALUE_NUM_BITS .*$/#define RTE_EFD_VALUE_NUM_BITS (8)' lib/librte_efd/rte_efd.h", "#")
+        self.dut.send_expect("sed -i -e 's/#define RTE_EFD_VALUE_NUM_BITS .*$/#define RTE_EFD_VALUE_NUM_BITS (8)/' lib/librte_efd/rte_efd.h", "#")
         self.dut.build_install_dpdk(self.target)
         out = self.dut.build_dpdk_apps("./examples/server_node_efd")
         self.verify("Error" not in out, "Compilation error")