]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Un-hardcode tasks.
authorTommi Virtanen <tommi.virtanen@dreamhost.com>
Fri, 3 Jun 2011 16:48:22 +0000 (09:48 -0700)
committerTommi Virtanen <tommi.virtanen@dreamhost.com>
Fri, 3 Jun 2011 16:48:22 +0000 (09:48 -0700)
dbench.py
dbench.yaml

index 7a7fd5cd5276f0441db4e8107e5b632a00c77e4f..85903302f157674df0c1dd02521ef374a31f46cf 100644 (file)
--- a/dbench.py
+++ b/dbench.py
@@ -13,6 +13,7 @@ from orchestra import connection, run, remote
 import orchestra.cluster
 # TODO cleanup
 import teuthology.misc as teuthology
+from teuthology.run_tasks import run_tasks
 
 log = logging.getLogger(__name__)
 
@@ -33,6 +34,10 @@ if __name__ == '__main__':
     for rem, roles in zip(remotes, ROLES):
         cluster.add(rem, roles)
 
+    ctx = bunch.Bunch(
+        cluster=cluster,
+        )
+
     log.info('Checking for old test directory...')
     processes = cluster.run(
         args=[
@@ -414,18 +419,7 @@ if __name__ == '__main__':
 
     # TODO rbd
 
-    ctx = bunch.Bunch(
-        cluster=cluster,
-        )
-    from teuthology.run_tasks import run_tasks
-    run_tasks(
-        tasks=[
-            {'cfuse': ['client.0']},
-            {'autotest': {'client.0': ['dbench']}},
-            {'interactive': None},
-            ],
-        ctx=ctx,
-        )
+    run_tasks(tasks=config['tasks'], ctx=ctx)
 
     log.info('Shutting down mds daemons...')
     for id_, proc in mds_daemons.iteritems():
index 32bc4f618b6a6fcf82de9ab52ad7cdf1385d9647..c69626e6ce516977770d37e95d0165227941600c 100644 (file)
@@ -6,5 +6,8 @@ targets:
 - ubuntu@sepia70.ceph.dreamhost.com
 - ubuntu@sepia71.ceph.dreamhost.com
 - ubuntu@sepia72.ceph.dreamhost.com
-client_types:
-- client.0: kclient
+tasks:
+- cfuse: [client.0]
+- autotest:
+    client.0: [dbench]
+- interactive: