[dts] [PATCH] Remove vhost socket file before start vxlan sample

Yong Liu yong.liu at intel.com
Fri Jul 17 11:31:45 CEST 2015


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



More information about the dts mailing list