• Ben Pastene's avatar
    Gracefully kill child procs of CrOS VM tests on SIGTERM. · b602383e
    Ben Pastene authored
    We collect logs from the VM after tests. The problem is, if the test
    hangs indefinitely, we won't get a chance to grab the logs before
    swarming kills us when we reach the timeout.
    
    Swarming sends a SIGTERM, waits for grace_period, then SIGKILLs the task
    if it's still running. This CL will catch the SIGTERM and kill what
    should be the frozen test process. This will let cros_run_vm_test pull
    the logs before we get SIGKILLed.
    
    Bug: 848402
    Change-Id: I48be1de865e3b287584978b5461f15e2bae49dfd
    Reviewed-on: https://chromium-review.googlesource.com/1087800
    Commit-Queue: Ben Pastene <bpastene@chromium.org>
    Reviewed-by: default avatarJohn Budorick <jbudorick@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#565357}
    b602383e
.vpython 4.72 KB