[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dpdk-dts
Subject:    [dts] [PATCH] Remove vhost socket file before start vxlan sample
From:       yong.liu () intel ! com (Yong Liu)
Date:       2015-07-17 9:31:45
Message-ID: 1437125505-32225-1-git-send-email-yong.liu () intel ! com
[Download RAW message or body]

From: Marvin Liu <yong.liu at intel.com>

Vxlan sample will remove socket file if exited normally. When something wrong
and vhost socket existed, vxlan sample will not start as normal.

Signed-off-by: Marvin Liu <yong.liu at intel.com>

diff --git a/tests/TestSuite_vxlan_sample.py b/tests/TestSuite_vxlan_sample.py
index ef94c87..4ede98e 100644
--- a/tests/TestSuite_vxlan_sample.py
+++ b/tests/TestSuite_vxlan_sample.py
@@ -196,6 +196,9 @@ class TestVxlanSample(TestCase):
         pass
 
     def prepare_vxlan_sample_env(self, tep_cmd, vm_num=1):
+        # remove unexpected socke
+        self.dut.send_expect("rm -rf vhost-net", "# ")
+
         # start tep_termination first
         self.dut.send_expect(tep_cmd, "VHOST_CONFIG: bind to vhost-net")
 
-- 
1.9.3


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic