allwinner_a64/android/external/autotest/contrib/abortjob
2018-08-08 16:14:42 +08:00

16 lines
372 B
Python
Executable file

#!/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