Kill stray processes on the system that started in the same out directory. All swarming tasks share the same out directory location.
()
| 40 | |
| 41 | |
| 42 | def kill_processes_linux(): |
| 43 | """Kill stray processes on the system that started in the same out directory. |
| 44 | |
| 45 | All swarming tasks share the same out directory location. |
| 46 | """ |
| 47 | if platform.system() != 'Linux': |
| 48 | return |
| 49 | for pid, cmd in list_processes_linux(): |
| 50 | try: |
| 51 | logging.warning('Attempting to kill %d - %s', pid, cmd) |
| 52 | os.kill(pid, signal.SIGKILL) |
| 53 | except: |
| 54 | logging.exception('Failed to kill process') |
| 55 | |
| 56 | |
| 57 | def base_test_record(test, result, run): |
nothing calls this directly
no test coverage detected
searching dependent graphs…