File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
src/clusterfuzz/_internal/platforms/android Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 5252GET_DEVICE_STATE_TIMEOUT = 20
5353STOP_CVD_WAIT = 20
5454LAUNCH_CVD_TIMEOUT = 2700
55+ CMD_KILL_CROSVM = 'pkill crosvm'
56+ CMD_KILL_RUN_CVD = 'pkill run_cvd'
5557
5658# Output patterns to parse "lsusb" output.
5759LSUSB_BUS_RE = re .compile (r'Bus\s+(\d+)\s+Device\s+(\d+):.*' )
@@ -448,6 +450,11 @@ def stop_cuttlefish_device():
448450 stop_cvd_cmd , timeout = RECOVERY_CMD_TIMEOUT , on_cuttlefish_host = True )
449451 time .sleep (STOP_CVD_WAIT )
450452
453+ execute_command (
454+ CMD_KILL_CROSVM , timeout = RECOVERY_CMD_TIMEOUT , on_cuttlefish_host = True )
455+ execute_command (
456+ CMD_KILL_RUN_CVD , timeout = RECOVERY_CMD_TIMEOUT , on_cuttlefish_host = True )
457+
451458
452459def restart_cuttlefish_device ():
453460 """Restarts the cuttlefish device."""
You can’t perform that action at this time.
0 commit comments