]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/ragweed: configurable stages
authorYehuda Sadeh <yehuda@redhat.com>
Tue, 21 Feb 2017 22:56:06 +0000 (14:56 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Mon, 19 Feb 2018 22:45:51 +0000 (14:45 -0800)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
qa/tasks/ragweed.py

index 7106c1a85867b98825bac850270ae9d4e1041f39..ffd52859a9f723e301c79239a7ec27f95aa05096 100644 (file)
@@ -232,9 +232,12 @@ def run_tests(ctx, config):
     if not ctx.rgw.use_fastcgi:
         attrs.append("!fails_on_mod_proxy_fcgi")
     for client, client_config in config.iteritems():
+        stages = 'prepare,check'
+        if client_config is not None:
+            stages = client_config.get('stages', 'prepare,check')
         args = [
             'RAGWEED_CONF={tdir}/archive/ragweed.{client}.conf'.format(tdir=testdir, client=client),
-            'RAGWEED_RUN=stage,check',
+            'RAGWEED_STAGES={stages}'.format(stages=stages),
             'BOTO_CONFIG={tdir}/boto.cfg'.format(tdir=testdir),
             '{tdir}/ragweed/virtualenv/bin/nosetests'.format(tdir=testdir),
             '-w',
@@ -279,6 +282,7 @@ def task(ctx, config):
             client.0:
               rgw_server: client.1
               idle_timeout: 600
+              stages: prepare,check
 
     To pass extra arguments to nose (e.g. to run a certain test)::