summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarvin Liu <yong.liu@intel.com>2015-07-17 17:31:45 +0800
committerMarvin Liu <yong.liu@intel.com>2015-07-20 09:20:59 +0800
commit9d1e102f76df23743c299a16009819e4982b80c8 (patch)
treec7818f1009a79296d39afdb29aa1ee7605f9d7da
parent00f5c64f3f1696bd6f8c1bc47aab2c9f3291f5b8 (diff)
downloaddts-9d1e102f76df23743c299a16009819e4982b80c8.zip
dts-9d1e102f76df23743c299a16009819e4982b80c8.tar.gz
dts-9d1e102f76df23743c299a16009819e4982b80c8.tar.xz
Remove vhost socket file before start vxlan sample
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@intel.com>
-rw-r--r--tests/TestSuite_vxlan_sample.py3
1 files changed, 3 insertions, 0 deletions
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")