]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/rgw: rgw_multisite_tests task loads default plugins
authorAdam C. Emerson <aemerson@redhat.com>
Sat, 8 May 2021 00:01:11 +0000 (20:01 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Mon, 31 Jan 2022 20:48:13 +0000 (15:48 -0500)
the ability to filter tests by attribute is provided by the
nose.plugins.attrib plugin, which wasn't being loaded by default

Signed-off-by: Casey Bodley <cbodley@redhat.com>
qa/tasks/rgw_multisite_tests.py

index 5354e756fd737715bb4da5bf9f43f0f25989d7a2..732a2c17d22e58aae50443792da3dd58b8f122de 100644 (file)
@@ -7,6 +7,7 @@ import nose.core
 import nose.config
 import sys
 
+from nose.plugins.manager import DefaultPluginManager
 from teuthology.config import config as teuth_config
 from teuthology.exceptions import ConfigError
 from teuthology.repo_utils import fetch_repo
@@ -90,6 +91,7 @@ class RGWMultisiteTests(Task):
 
         # run nose tests in the module path
         conf = nose.config.Config(stream=get_log_stream(), verbosity=2, workingDir=self.module_path)
+        conf.plugins = DefaultPluginManager() # overrides default = NoPlugins()
         assert nose.run(argv=argv, config=conf), 'rgw multisite test failures'