aboutsummaryrefslogtreecommitdiff
path: root/deprecated/automation/clients/helper/jobs.py
diff options
context:
space:
mode:
Diffstat (limited to 'deprecated/automation/clients/helper/jobs.py')
-rw-r--r--deprecated/automation/clients/helper/jobs.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/deprecated/automation/clients/helper/jobs.py b/deprecated/automation/clients/helper/jobs.py
new file mode 100644
index 00000000..96a1c408
--- /dev/null
+++ b/deprecated/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