parameters: (ctx, config, run_stages)
docstring: Run the ragweed after everything is set up.
  
      :param ctx: Context passed to task
      :param config: specific configuration information
docstring_summary: Run the ragweed after everything is set up.
docstring_tokens: Run the ragweed after everything is set up .
function: def run_tests(ctx, config, run_stages):
      """
      Run the ragweed after everything is set up.
  
      :param ctx: Context passed to task
      :param config: specific configuration information
      """
      assert isinstance(config, dict)
      testdir = teuthology.get_testdir(ctx)
      attrs = ["!fails_on_rgw"]
      for client, client_config in config.items():
          stages = ','.join(run_stages[client])
          args = [
              'RAGWEED_CONF={tdir}/archive/ragweed.{client}.conf'.format(tdir=testdir, client=client),
              'RAGWEED_STAGES={stages}'.format(stages=stages),
              'BOTO_CONFIG={tdir}/boto.cfg'.format(tdir=testdir),
              '{tdir}/ragweed/virtualenv/bin/python'.format(tdir=testdir),
              '-m', 'nose',
              '-w',
              '{tdir}/ragweed'.format(tdir=testdir),
              '-v',
              '-a', ','.join(attrs),
              ]
          if client_config is not None and 'extra_args' in client_config:
              args.extend(client_config['extra_args'])
  
          ctx.cluster.only(client).run(
              args=args,
              label="ragweed tests against rgw"
              )
      yield
function_tokens: def run_tests ( ctx , config , run_stages ) : assert isinstance ( config , dict ) testdir = teuthology . get_testdir ( ctx ) attrs = [ "!fails_on_rgw" ] for client , client_config in config . items ( ) : stages = ',' . join ( run_stages [ client ] ) args = [ 'RAGWEED_CONF={tdir}/archive/ragweed.{client}.conf' . format ( tdir = testdir , client = client ) , 'RAGWEED_STAGES={stages}' . format ( stages = stages ) , 'BOTO_CONFIG={tdir}/boto.cfg' . format ( tdir = testdir ) , '{tdir}/ragweed/virtualenv/bin/python' . format ( tdir = testdir ) , '-m' , 'nose' , '-w' , '{tdir}/ragweed' . format ( tdir = testdir ) , '-v' , '-a' , ',' . join ( attrs ) , ] if client_config is not None and 'extra_args' in client_config : args . extend ( client_config [ 'extra_args' ] ) ctx . cluster . only ( client ) . run ( args = args , label = "ragweed tests against rgw" ) yield