From 26fdef0a75044bec1920fa0660bd5027f0f07575 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Mon, 16 Jun 2014 12:26:50 -0600 Subject: [PATCH] Split prepare_and_schedule() out of main() Signed-off-by: Zack Cerza --- teuthology/suite.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/teuthology/suite.py b/teuthology/suite.py index a149c52e954d8..9ee317c408d42 100644 --- a/teuthology/suite.py +++ b/teuthology/suite.py @@ -35,6 +35,25 @@ def main(args): if verbose: teuthology.log.setLevel(logging.DEBUG) + prepare_and_schedule(owner=owner, + name=name, + suite=suite, + machine_type=machine_type, + base=base, + base_yaml_paths=base_yaml_paths, + email=email, + priority=priority, + limit=limit, + num=num, + timeout=timeout, + dry_run=dry_run, + verbose=verbose, + ) + + +def prepare_and_schedule(owner, name, suite, machine_type, base, + base_yaml_paths, email, priority, limit, num, timeout, + dry_run, verbose): arch = get_arch(machine_type) if ',' in machine_type: -- 2.39.5