aboutsummaryrefslogtreecommitdiff
path: root/automation/clients/helper/jobs.py
blob: ea9c9691ee00a4a3406f4844305bdd3d185b1bf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/python
#
# 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