diff options
Diffstat (limited to 'automation/clients/helper/jobs.py')
-rw-r--r-- | automation/clients/helper/jobs.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/automation/clients/helper/jobs.py b/automation/clients/helper/jobs.py new file mode 100644 index 00000000..96a1c408 --- /dev/null +++ b/automation/clients/helper/jobs.py @@ -0,0 +1,11 @@ +# Copyright 2010 Google Inc. All Rights Reserved. + +from automation.common import job +from automation.common import machine + + +def CreateLinuxJob(label, command, lock=False, timeout=4 * 60 * 60): + to_return = job.Job(label, command, timeout) + to_return.DependsOnMachine(machine.MachineSpecification(os='linux', + lock_required=lock)) + return to_return |