(self)
| 57 | file.write(line) |
| 58 | |
| 59 | def kill_failed_process(self): |
| 60 | result = subprocess.run(['pgrep', '-n', 'CrashReport'], stdout=subprocess.PIPE) |
| 61 | cr_pid = result.stdout.decode().strip() |
| 62 | if len(cr_pid) > 0: |
| 63 | subprocess.run(['kill', '-9', cr_pid]) |
| 64 | |
| 65 | result = subprocess.run(['pgrep', '-n', 'CitySample'], stdout=subprocess.PIPE) |
| 66 | cr_pid = result.stdout.decode().strip() |
| 67 | if len(cr_pid) > 0: |
| 68 | subprocess.run(['kill', '-9', cr_pid]) |
| 69 | |
| 70 | def _init_ue_sim(self): |
| 71 | env_dir = "envs/ue/" + self.env_name |