1#!/usr/bin/python 2# 3# Copyright 2010 Google Inc. All Rights Reserved. 4 5import os.path 6import pickle 7import sys 8import xmlrpclib 9 10from automation.common import job 11from automation.common import job_group 12from automation.common import machine 13 14 15def Main(): 16 server = xmlrpclib.Server('http://localhost:8000') 17 18 command = os.path.join( 19 os.path.dirname(sys.argv[0]), '../../produce_output.py') 20 21 pwd_job = job.Job('pwd_job', command) 22 pwd_job.DependsOnMachine(machine.MachineSpecification(os='linux')) 23 24 group = job_group.JobGroup('pwd_client', [pwd_job]) 25 server.ExecuteJobGroup(pickle.dumps(group)) 26 27 28if __name__ == '__main__': 29 Main() 30