| 180 | file.write(line) |
| 181 | |
| 182 | def kill_failed_process(self): |
| 183 | result = subprocess.run(['pgrep', '-n', 'CrashReport'], stdout=subprocess.PIPE) |
| 184 | cr_pid = result.stdout.decode().strip() |
| 185 | if len(cr_pid) > 0: |
| 186 | subprocess.run(['kill', '-9', cr_pid]) |
| 187 | |
| 188 | result = subprocess.run(['pgrep', '-n', 'CitySample'], stdout=subprocess.PIPE) |
| 189 | cr_pid = result.stdout.decode().strip() |
| 190 | if len(cr_pid) > 0: |
| 191 | subprocess.run(['kill', '-9', cr_pid]) |
| 192 | |
| 193 | def _init_ue_sim(self): |
| 194 | env_dir = "envs/ue/" + self.env_name |