Revision a160bb48 test_generic.py

View differences:

test_generic.py
21 21
    def getAllHosts(self):
22 22
        return self.net.values()
23 23

  
24
    def bgCmd(self,host,force_multiple_processes,*args):
24
    def bgCmd(self, host, force_multiple_processes, *args):
25 25
        # here it's a little workaround for tracing the resulting pid
26 26
        # it launch the new process using the mininet interface
27 27
        # but it check the newly created process id using psutil
......
49 49
            error("Error while killing process "+str(pid))
50 50
            pass
51 51

  
52
    def killAll(self):
52
    def killAll(self, sig = signal.SIGKILL):
53 53
        for pid in self.pendingProc.keys():
54
            self.sendSig(pid,signal.SIGKILL)
54
            self.sendSig(pid, sig)
55 55
            self.pendingProc[pid].monitor() # wait exiting
56 56
        self.pendingProc.clear()
57 57

  

Also available in: Unified diff