1#!/usr/bin/env python2 2# A utility script used to abort jobs. 3# 4# Usage: 5# ./abort_job job_id1 job_id2 ... 6 7import sys 8 9import common 10 11from autotest_lib.server.cros.dynamic_suite import frontend_wrappers 12 13afe = frontend_wrappers.RetryingAFE(timeout_min=5, delay_sec=10) 14jobs_to_abort = sys.argv[1:] 15afe.abort_jobs(jobs_to_abort) 16print 'jobs aborted: %s' % jobs_to_abort 17