[dts] [PATCH V1] tests/vhost_virtio_user_interrupt:fix test case blocked issue

Zhu, WenhuiX wenhuix.zhu at intel.com
Thu Oct 24 07:01:09 CEST 2019


Tested-by: Zhu, WenhuiX <wenhuix.zhu at intel.com>

-----Original Message-----
From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of zhu,shuai
Sent: Thursday, October 24, 2019 12:01 PM
To: dts at dpdk.org
Cc: Zhu, ShuaiX <shuaix.zhu at intel.com>
Subject: [dts] [PATCH V1] tests/vhost_virtio_user_interrupt:fix test case blocked issue

Modify the code due to dpdk changes.

Signed-off-by: zhu,shuai <shuaix.zhu at intel.com>
---
 tests/TestSuite_vhost_virtio_user_interrupt.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/TestSuite_vhost_virtio_user_interrupt.py b/tests/TestSuite_vhost_virtio_user_interrupt.py
index 5422e04..91edcce 100644
--- a/tests/TestSuite_vhost_virtio_user_interrupt.py
+++ b/tests/TestSuite_vhost_virtio_user_interrupt.py
@@ -84,6 +84,10 @@ class TestVirtioUserInterrupt(TestCase):
         self.dut.send_expect("cp ./examples/l3fwd-power/main.c .", "#")
         self.dut.send_expect(
                 "sed -i '/DEV_RX_OFFLOAD_CHECKSUM/d' ./examples/l3fwd-power/main.c", "#", 10)
+        self.dut.send_expect(
+                "sed -i '/if (promiscuous_on/i\#if 0' ./examples/l3fwd-power/main.c", "#", 10)
+        self.dut.send_expect(
+                "sed -i '/rte_spinlock_init(&(locks/i\#endif' ./examples/l3fwd-power/main.c", "#", 10)
         out = self.dut.build_dpdk_apps("./examples/l3fwd-power")
         self.verify("Error" not in out, "compilation l3fwd-power error")
 
-- 
2.17.2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestVirtioUserInterrupt.log
Type: application/octet-stream
Size: 9096 bytes
Desc: TestVirtioUserInterrupt.log
URL: <http://mails.dpdk.org/archives/dts/attachments/20191024/635abbd0/attachment.obj>


More information about the dts mailing list