INNER CODE UNIT · Python
BreakpadCrashTest
DaemonEngine/Daemon · tools/crash_test.py:64
class BreakpadCrashTest(Test):
def __init__(self, module, engine, tprefix, fault):
super().__init__(module + "." + fault)
self.engine = engine
self.tprefix = tprefix
self.fault = fault
self.dir = PathJoin(TEMP_DIR, self.name)
try:
shutil.rmtree(self.dir)
except FileNotFoundError:
pass
os.makedirs(self.dir)
def Do(self):
vmtype = "0" if SYMBOL_ZIPS else "1"
print("Running Daemon...")
p = subprocess.run([self.engine,
"-noforward", # catch stupid Linux persistent sockets (if gamelogic test...)