]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Split prepare_and_schedule() out of main()
authorZack Cerza <zack@cerza.org>
Mon, 16 Jun 2014 18:26:50 +0000 (12:26 -0600)
committerZack Cerza <zack@cerza.org>
Wed, 25 Jun 2014 18:54:23 +0000 (12:54 -0600)
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/suite.py

index a149c52e954d82b7fe1dc928294c6ad4664ea1d8..9ee317c408d42a4fd942967fb5c3880590df1b5c 100644 (file)
@@ -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: