Esempio n. 1
0
 def stop(self):
     '''Stop tcpdump if it is running.'''
     if self.tcpdump_proc:
         status("Terminating tcpdump")
         self.tcpdump_proc.terminate()
         self.tcpdump_proc = None
         self.current_outputfile = None
Esempio n. 2
0
 def start_test(self, test: str):
     '''Call this at the beginning of a test.'''
     self.running = test
     status(test + " starting")