Revision c93edefb test_generic.py

View differences:

test_generic.py
33 33
        host.sendCmd(*(args+("&",)))
34 34
        sleep(0.5)
35 35
        try :
36
            pid = (set(host_proc.get_children()).difference(host_ps)).pop().pid
36
            pid = (set(host_proc.get_children()).difference(host_ps)).\
37
                    pop().pid
37 38
            info("BGProcess: "+str(pid)+"; ")
38 39
            self.pendingProc[pid] = host
39 40
        except:
......
52 53
    def killAll(self, sig = signal.SIGKILL):
53 54
        for pid in self.pendingProc.keys():
54 55
            self.sendSig(pid, sig)
55
            self.pendingProc[pid].monitor() # wait exiting
56
            #r = self.pendingProc[pid].monitor(100) # wait exiting
57

  
56 58
        self.pendingProc.clear()
57 59
        for host in self.net.values():
58 60
            host.waiting = False

Also available in: Unified diff