From 831645c3cff331d9caf716a60eab610ebe936e4b Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Tue, 21 Feb 2017 14:56:06 -0800 Subject: [PATCH] qa/tasks/ragweed: configurable stages Signed-off-by: Yehuda Sadeh --- qa/tasks/ragweed.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qa/tasks/ragweed.py b/qa/tasks/ragweed.py index 7106c1a85867b..ffd52859a9f72 100644 --- a/qa/tasks/ragweed.py +++ b/qa/tasks/ragweed.py @@ -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):: -- 2.39.5