aosp12/external/autotest/contrib/abortjob

17 lines
372 B
Plaintext
Raw Normal View History

2023-01-09 17:11:35 +08:00
#!/usr/bin/env python2
# A utility script used to abort jobs.
#
# Usage:
# ./abort_job job_id1 job_id2 ...
import sys
import common
from autotest_lib.server.cros.dynamic_suite import frontend_wrappers
afe = frontend_wrappers.RetryingAFE(timeout_min=5, delay_sec=10)
jobs_to_abort = sys.argv[1:]
afe.abort_jobs(jobs_to_abort)
print 'jobs aborted: %s' % jobs_to_abort