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
def start_test(self, test: str): '''Call this at the beginning of a test.''' self.running = test status(test + " starting")