mpExperience: prevent minitopo going bad by killing everything

This commit is contained in:
Quentin De Coninck 2016-05-27 17:03:33 +02:00
parent 30084ffa43
commit 5074bc805f
3 changed files with 3 additions and 1 deletions

View File

@ -79,4 +79,5 @@ class MpExperienceHTTPS(MpExperience):
self.mpTopo.commandTo(self.mpConfig.client, cmd) self.mpTopo.commandTo(self.mpConfig.client, cmd)
self.mpTopo.commandTo(self.mpConfig.server, "netstat -sn > netstat_server_after") self.mpTopo.commandTo(self.mpConfig.server, "netstat -sn > netstat_server_after")
self.mpTopo.commandTo(self.mpConfig.client, "netstat -sn > netstat_client_after") self.mpTopo.commandTo(self.mpConfig.client, "netstat -sn > netstat_client_after")
self.mpTopo.commandTo(self.mpConfig.server, "pkill -f https.py")
self.mpTopo.commandTo(self.mpConfig.client, "sleep 2") self.mpTopo.commandTo(self.mpConfig.client, "sleep 2")

View File

@ -81,4 +81,5 @@ class MpExperienceSiri(MpExperience):
self.mpTopo.commandTo(self.mpConfig.client, cmd) self.mpTopo.commandTo(self.mpConfig.client, cmd)
self.mpTopo.commandTo(self.mpConfig.server, "netstat -sn > netstat_server_after") self.mpTopo.commandTo(self.mpConfig.server, "netstat -sn > netstat_server_after")
self.mpTopo.commandTo(self.mpConfig.client, "netstat -sn > netstat_client_after") self.mpTopo.commandTo(self.mpConfig.client, "netstat -sn > netstat_client_after")
self.mpTopo.commandTo(self.mpConfig.server, "pkill -f siri_server.py")
self.mpTopo.commandTo(self.mpConfig.client, "sleep 2") self.mpTopo.commandTo(self.mpConfig.client, "sleep 2")

View File

@ -86,6 +86,6 @@ class MpExperienceVLC(MpExperience):
if self.time != "0" : if self.time != "0" :
self.mpTopo.commandTo(self.mpConfig.client, "sleep " + self.time) self.mpTopo.commandTo(self.mpConfig.client, "sleep " + self.time)
self.mpTopo.commandTo(self.mpConfig.client, "pkill -9 vlc") self.mpTopo.commandTo(self.mpConfig.client, "pkill -9 -f vlc")
self.mpTopo.commandTo(self.mpConfig.client, "sleep 2") self.mpTopo.commandTo(self.mpConfig.client, "sleep 2")