def windows_task(name): return (decisionlib.WindowsGenericWorkerTask(name).with_worker_type( "servo-win2016").with_treeherder_required())
def windows_task(name): return (decisionlib.WindowsGenericWorkerTask(name).with_worker_type( CONFIG.windows_worker_type).with_treeherder_required())
def windows_task(name, worker_type=None): if worker_type is None: worker_type = "win2016" return (decisionlib.WindowsGenericWorkerTask(name).with_worker_type( worker_type).with_treeherder_required())
def windows_task(name, worker_type=None): if worker_type is None: worker_type = "servo-win2016" if CONFIG.legacy_tc_deployment else "win2016" return (decisionlib.WindowsGenericWorkerTask(name).with_worker_type( worker_type).with_treeherder_required())