1 #!/usr/bin/python 2 # Simple utility to trigger a Verify job on a bunch of hosts. 3 # 4 # CAVEAT: no error checking; if any argument isn't a valid 5 # host, it will be silently ignored. If there are no command 6 # line arguments, silently succeed. 7 8 import sys 9 10 import common 11 12 from autotest_lib.server import frontend 13 14 # I _think_ (but I don't know) that the AFE calls operate on all the 15 # hosts if there are no arguments given. I do know for certain that 16 # with hostnames=[], the call takes longer than I was willing to 17 # wait. 18 # 19 # To protect against pointless exercises in futility, do nothing 20 # if there are no arguments. 21 22 if len(sys.argv) >= 2: 23 frontend.AFE().reverify_hosts(hostnames=sys.argv[1:]) 24